0
votes

I created embedded forms with this tutorial: http://prendreuncafe.com/blog/post/2009/11/29/Embedding-Relations-in-Forms-with-Symfony-1.3-and-Doctrine

but i have one problem. How can i compare two or more values in this example? I would like compare name in table Bookmark, for example only one name can be with numbers. I can make this, but i dont know where i must set Validator for this. In BookmarkForm.class.php i have only one value, i can't get all values in Form. Where in this example i have all values and i can use own Validator form Symfony?

1

1 Answers

1
votes

I'm not quite if this is what you're asking for, but a postValidator will allow you to do validation that requires access to multiple fields.

Here's an example of how to create a custom postValidator.