[eluser]NachoF[/eluser]
Thank you Phil, I have finally figured it out using always_validate and a custom zero_on_empty function
I have now a question regarding the unique_pair validation method.. how can I make it work with relations?
Heres the model structure, a project has many stages, and each stage has a year field.. so basically, a project shouldnt have two stages with the same year value...