In your code you use @validation, but now it's @assert Example from http://symfony.com/doc/2.0/book/validation.html // Acme/BlogBundle/Author.php class Author { /** * @assert:Choice({"male", "female"}) */ protected $gender; }
On 12 avr, 12:45, kassel <alvaro.tou...@gmail.com> wrote: > Hi, as i undertood i've got the same problem, the annotations dont > wark, and even email work. > Any idea > Thanks > > On 18 mar, 00:02, j_stout <jordanst...@gmail.com> wrote: > > > > > > > > > Basically I just got a small understanding on a service, but still no > > clue how they pertain to forms. Also there is no documentation on > > adding validation groups via Entity Annotations, so hopefully all > > these things get solved one day. So if someone can guide me on how to > > do validation inside the entity and have smaller forms, that would be > > extremely helpful. I've been stuck on this all day and I'm almost > > ready to give up. > > > On Mar 16, 4:35 pm, j_stout <jordanst...@gmail.com> wrote: > > > > Here is my paste:http://pastebin.com/9gNhD3d9 > > > > First and foremost, I love the direction S2 is going on everything. > > > I'm just stuck at this one point and don't understand what's going on. > > > > I'm starting to think that Validation in Entity Annotations isn't the > > > way to go. It works when I'm starting a new entity Object (ie. User) > > > and need all the required fields to validate properly, but when I'm > > > ready to validate whether a login is correct or not, or if a user > > > needs to update just one element of his profile (such as his aform > > > only with a textarea for his Bio), it seems to be grabbing ALL > > > validation constraints and casting errors on variables that aren't > > > even in theform... (refer to pastehttp://pastebin.com/9gNhD3d9) > > > > What is the best practice (or going to be) for validating forms as > > > they come (logins / inline edits / etc)? > > > > PS. Good job Bernhard on theFormcomponent. What's an estimation on > > > when it will be finished? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en