Hi Antenne,

I suggest not using *Aware* interfaces at all.
While many folks suggest to use them for RAD, I completely banned them from
any code I write myself, and you are experiencing the exact problems for
which I decided to introduce this policy.

If you need the ObjectManager in a form/fieldset, then create a factory for
the form/fieldset and inject explicitly in the constructor.

Greets,

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On 15 December 2014 at 19:50, Antenne <[email protected]> wrote:
>
>
>
> Op vrijdag 12 december 2014 20:16:24 UTC+1 schreef Antenne:
>>
>> I adjusted the Form so that it implements ObjectManagerAwareInterface,
>> the ObjectManager is injected fine.
>> How come it ends there and the FieldSets are not injected with the
>> ObjectManager?
>>
>
> Anybody? I am really stuck here...
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to