Perfect, I dunno why I havn't think about it but it's just what I
needed.
Thanks !

On Dec 30, 1:14 am, Bernhard Schussek <bschus...@gmail.com> wrote:
> You can simply create a constructor that accepts the EntityManager as
> parameter, no?
>
> Bernhard
> --
> Software Architect & Engineer
> Blog:http://webmozarts.com
> Twitter:http://twitter.com/webmozart
>
> 2010/12/29 François <frobic...@toog.fr>:
>
> > Hi everyone,
>
> > I'm in trouble with something in the example of the Form
> > documentation 
> > :http://docs.symfony-reloaded.org/guides/forms/overview.html#form-vali...
>
> > In fact, I'd like to save my form like in the example :
>
> > namespace Application\HelloBundle\Entity;
>
> > class Registration
> > {
> >    public function process()
> >    {
> >        // save user, send emails etc.
> >    }
> > }
>
> > The problem is that I need the EntityManager to save user, isn't it ?
> > But how can I have access to my EntityManager in an Entity ?
>
> > 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 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

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