php - How to convert database tables to doctrine entities -
i using doctrine , codeigniter , have existing db.this tool supposedly enables generating models database.
i seek :
php doctrine.php orm:convert-mapping --from-database but runtime exception (not plenty arguments)
any ideas?
try this,
for xml output
php doctrine orm:convert-mapping --from-database --namespace='entities\' xml mapping/xml for yaml output
php doctrine orm:convert-mapping --from-database --namespace='entities\' yml mapping/yml after should create entities this,
php doctrine orm:generate-entities help,
php doctrine orm:generate-entities --help for more information, docs
php codeigniter command-line doctrine
No comments:
Post a Comment