Hi there, 

I have a weird issue and i'm not sure what is wrong and how to solve it. 

I have extended the Entity Manager, as i needed to add some soft delete 
stuff and other bits and bobs that needed to happen on each persist. The 
problem seems to occur when i try and save a class. 

I have App_Model_Product(); my application uses PHP comments to setup the 
database and tables. 

When i try and save the Product i get "Entity was not found"

The stack trace is: 

Exception Type:Doctrine\ORM\EntityNotFoundException
Message: Entity was not found.

Trace:
#0 /vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1607): 
Doctrine\ORM\UnitOfWork->doMerge(Object(App_Model_Product), Array)
#1 /vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(569): 
Doctrine\ORM\UnitOfWork->merge(Object(App_Model_Product))
#2 /lib/App/Doctrine/EntityManager.php(319): 
Doctrine\ORM\EntityManager->merge(Object(App_Model_Product))
#3 /lib/App/ServiceLayer/Doctrine/Abstract.php(54): 
App_Doctrine_EntityManager->persist(Object(App_Model_Product))

I'm using Doctrine 2.2, PHP 5.5.9

This wasnt an issue earlier in the day and is now and i'm  ot sure what i 
changed. Why would my Entity not be found? How can i generate the Entities 
or what is the issue? 

-- 
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 https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to