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

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

Reply via email to