Re: [symfony-users] Validation propagating to related entities in Symfony2

2011-04-19 Thread JF Simon
Hi guys, Totaly agree with Dennis ... this "over-validation" appeared to me like an error at the first time (that's why I'm here). In my case, the "over-validated" object has a "@assert:Validate" on a foreign key ... as my foreign key is not automatuically hydrated, I get a systematic error!!!

Re: [symfony-users] Validation propagating to related entities in Symfony2

2011-04-18 Thread Dennis Jacobfeuerborn
Hi, I'd strongly favor not doing such a "recursive" validation by default. When I create a form 99% of the time I only want to validate the data submitted in fact I can't even think of a case where I'd want to do a deeper validation right now. Checking the city when you only submit a user seems

Re: [symfony-users] Validation propagating to related entities in Symfony2

2011-04-17 Thread Bernhard Schussek
2011/4/17 Dennis Jacobfeuerborn : > I think the reference should be validated but not necessarily the whole > entity the reference points to. The reference would be validated anyway because the reference is a property of the main object. Bernhard -- If you want to report a vulnerability issue o

Re: [symfony-users] Validation propagating to related entities in Symfony2

2011-04-17 Thread Dennis Jacobfeuerborn
Hi, I think the reference should be validated but not necessarily the whole entity the reference points to. Regards, Dennis On Sunday, April 17, 2011 10:36:43 AM UTC+2, Bernhard Schussek wrote: > > Hi Matt, > > The problem is that by default the data of each field is validated. For the > enti

Re: [symfony-users] Validation propagating to related entities in Symfony2

2011-04-17 Thread Bernhard Schussek
Hi Matt, The problem is that by default the data of each field is validated. For the entity field this is the selected entity. Does it make sense to generally disable validation for entity fields? Bernhard Am 16.04.2011 21:38 schrieb "Matt Johnston" : I have two entities that are joined by a Ma

[symfony-users] Validation propagating to related entities in Symfony2

2011-04-16 Thread Matt Johnston
I have two entities that are joined by a ManyToOne relation. Each entity has it's own set of validators. When I submit a form for the one object, the related object is also being validated. Is there any way that the related object can not be validated? Here is an example, I am using Symfony2 PR11:

[symfony-users] Validation propagating to related entities in Symfony2

2011-04-16 Thread m...@mjohnston.com
I have two entities that are joined by a ManyToOne relation. Each entity has it's own set of validators. When I submit a form for the parent object, the child object is also being validated. Is there any way that the child object can not be validated? Here is an example, I am using Symfony2 PR11: