hasmany validation and save data in a form, best approach

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

hasmany validation and save data in a form, best approach

Raul Magdalena Catala
lets say that i have a form that represents an invoice and the invoice items. the invoice has many invoice items relation.
the form has some inputs for the invoice, and 10 rows with inputs for the invoice items: item code, item qty, item price, etc...
Not always all the 10 rows are filled with invoice items and you do not wants that the validation rules be applied to these rows that are not used.
the question is, what is the best approach to accomplish this?

Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.