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


good morning, tell case. deleted table , foreign keys of database using in project under symfony. after importing mapping (xml) , generating entities, automatically using symfony console; when access page of project, shows me following exception can not understand:

fatal error:  uncaught exception 'doctrine\common\persistence\mapping\mappingexception' message 'class 'consolidador\panelbundle\entity\clients' 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 database generated correctly , there no longer foreign key or table references in database. neither xml mapping or entity have generated, not understand why exception.

i hope can me.

a greeting , all.


edit:

  • clear cache not fix error.

solved

working under moon eclipse ide launched search on entire project looking used entity managed deleted table. deleted trace of code appeared, returned generate mapping , entities , worked.

i'm not sure happened think because used provider in firewall.

thanks all!

try php app/console doctrine:generate:entities php app/console doctrine:schema:update --force

if using database cache memcache or apc sure clear restarting respective servers.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -