Le 11/05/2011 10:52, lidaa a écrit :
Hi all;

I have the following error when I try to insert a new record.

error:
      Class App\TestBundle\Entity\User is not a valid entity or mapped
super class.


code:

      orm:
          auto_generate_proxy_classes: %kernel.debug%
          auto_mapping: true

code:

          $em = $ this->get('doctrine')->getEntityManager();
          $em->persist($user);
          $em->flush();

Please paste the mapping of your entity.

--
Christophe | Stof

--
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 developers" 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-devs?hl=en

Reply via email to