i have allready fix this bug in the trunk and some other problems like
nested embeded ;)

actually we test the actual state and make a release in the near time.


greetings
Gimler

On Aug 9, 4:55 pm, Adam Divak <[email protected]> wrote:
> Hi,
>
> I'm trying to set up a form using
> ahDoctrineEasyEmbeddedRelationsPlugin and I think there is a small bug
> in the code that renders the whole thing useless: whenever I save my
> form, a new item is inserted (or at least Sf tries to insert a new
> record and I get a Doctrine error). The problem is that the new
> subform is still considered valid even though isNewFormEmpty returns
> true.
>
> I think the error is that an unset is flawed in the function doBind as
> $this->embeddedForms[$containerName] isn't unset.
>
> So, I think that line 249 of lib/form/ahBaseFormDoctrine.class.php
> should read
>
> unset($values[$containerName], $this->validatorSchema[$containerName],
>                     $this->embeddedForms[$containerName]);
>
> instead of
>
> unset($values[$containerName], $this-
>
> >validatorSchema[$containerName]);
>
> Cheers,
> Adam

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