Doctrine mapping a class that doesn't exist

Viewed 11721

I just re-installed Symfony2 and Doctrine. It's brand new.

Now I generate an entity (called account), put some simple annotation and then want to update my schema. And then:

 [Doctrine\Common\Persistence\Mapping\MappingException]               
 Class 'NRtworks\ChartOfAccountsBundle\Entity\Nathan' does not exist

But I don't have no class called Nathan (ok it's my firstname).Not anywhere in any bundle I currently have. I've had one like that but in another Symfony2 install.

Now when I create one entity named "Nathan" it works, but then it creates a schema that is not related.

Now my question is where doctrine can store "ghosts" entities ? I have tried to clear all the caches of doctrine & Symfony2 but it does not change anything.

2 Answers
Related