mercredi 5 août 2015

After removing a table from the database, doctrine shows 'MappingException'. [Symfony]


Good morning, I tell you my case. I deleted a table and foreign keys of a database that I am using in a project under Symfony. After importing the mapping (XML) and generating entities, all automatically using Symfony console; when I access any page of the project, shows me the following exception that can not understand:

Fatal error:  Uncaught exception 'Doctrine\Common\Persistence\Mapping\MappingException' with message 'Class 'Consolidador\PanelBundle\Entity\Clients' does not exist' in C:\xampp\htdocs\integracion-v2\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\MappingException.php:96
Stack trace:
#0 C:\xampp\htdocs\integracion-v2\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\RuntimeReflectionService.php(41): Doctrine\Common\Persistence\Mapping\MappingException::nonExistingClass('Consolidador\\Pa...')
#1 C:\xampp\htdocs\integracion-v2\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory.php(281): Doctrine\Common\Persistence\Mapping\RuntimeReflectionService->;getParentClasses('Consolidador\\Pa...')
#2 C:\xampp\htdocs\integracion-v2\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory.php(311): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getParentClasses('Consolidador\\Pa...')
#3 C:\xampp\htdocs\integracion-v2 in C:\xampp\htdocs\integracion-v2\vendor\doctrine\common\lib\Doctrine\Common\Persistence\Mapping\MappingException.php on line 96

I checked out the database is generated correctly and that there is no longer any foreign key or table references in the database. Neither the xml mapping or entity have generated, so I do not understand why this exception.

I hope you can help me.

A greeting and thanks to all.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire