php - doctrine 2 with CodeIgniter 2 No Metadata classes to process -
i utilize codeigniter 2 doctrine 2 , project working in
https://github.com/wildlyinaccurate/codeigniter-2-with-doctrine-2
i need generate entity classes existing database
so configured doctrine in development mode , set database on codeigniter
after write command
php doctrine orm:convert-mapping --from-database annotation models/generated
the classes generated correctly database without method,after write command generating entities
php doctrine orm:generate-entities --regenerate-entities="1" models/generated
but find error "no metadata classes process"
thanks.
in entity files generated, neet delete "use doctrine\orm\mapping orm;"
and replace "orm\" ""
php codeigniter doctrine2
No comments:
Post a Comment