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!!!
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
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
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
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
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:
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: