0
votes

I am using symfony2 and doctrine and today using command

php app/console doctrine:schema:update --force

encountered the following error:

[Doctrine\Common\Persistence\Mapping\MappingException] Class 'AppBundle\Entity\Linkksiazkaokladka' does not exist

eventhough I had no Entity\Linkksiazkaokladka.php file.

I have also noticed that:

php app/console doctrine:generate:entities AppBundle

generates entities which are not available in /entity/ directory.

1
You can also clear doctrine cache doctrine:cache:clear-metadataSunitrams

1 Answers

0
votes

Make sure that your Resource/Config/Doctrine directory is clear.

It seems that Doctrine generates entities first of all based on data in this directory.

In my case clearing Resource/Config/Doctrine helped.