I running schema update for Symfony2 gives:
Warning: class_parents(): Class Tg\UserBunde\Entity\Person does not exist and could not be loaded in /vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php on line 223
The Person class was in one bundle, then I moved it to a new bundle and updated the two assocations it had to the correct relative bundles, e.g.:
* @ORM\OneToOne(targetEntity="\Tg\BlogBundle\Entity\Author", mappedBy="person")
*/
private $author;
I understand something must be wrong, but I have absolutely no clue where the error is. Getting the line in the factory class is obviously useless; so how can i find the location of the error?
I’m assuming UserBundle is the old one and BlogBundle is the new (correct) one?
Have you cleared caches and generated new proxies (orm:generate-proxies)? Cached metadata or outdated proxies could be the cause for it to try looking for the old incorrect entity.