On a web form, for optimization reasons, we don't need to submit all
fields from the referenced entity, only the entity id. So yes, turning
off validation on referenced entities and only validating the
referenced id seems like the best solution to me.

With the cascading validation as it is now, how would that work where
entity A is related to entity B that his related to entity C? Am I
correct in assuming that for this flow to work correctly, all fields
of entities A, B and C must be validated in order for validation of A
to pass?

I doubt I am the first one to use this use case of including a
referenced entity in a web form. It is very common. How are others
addressing this issue?


Matt



On Apr 17, 4:06 pm, Bernhard Schussek <bschus...@gmail.com> wrote:
> 2011/4/17 Dennis Jacobfeuerborn <djacobfeuerb...@gmail.com>:
>
> > 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 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

Reply via email to