Hi all,

i have a form (business) which has a form that gets embedded
(business_speciality)

On the embedded form, I have a post validator using a callback to
ensure that a category and a subcategory aren't set on the same
business_speciality item.

However when I edit the parent object (business) in the admin
generator, the embedded form's post validator call back function
doesn't have any values in $values, and thus I have no way of
validating the embedded item. It's only when the parent object is
*updated* that $values actually has some values in it and thus
validation can work.

When I use the admin generator directly on the embedded item
(business_speciality), the post validation works perfectly; its just
when it is embedded that $values has no value when it is first saved.

Am I doing something wrong here? How can i get the $values on the
embedded form to actually have the inputted values the first time it
is saved?

thanks

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to