Reputation: 108
How can I generate Entities for Database using Doctrine and Codeigniter?
I found this line
$ php bin/console doctrine:mapping:import --force AcmeBlogBundle xml
But I did not know where I have to write it or how can I open the console of doctrine?
Upvotes: 2
Views: 918
Reputation: 362
This code line runs in terminal, go to your project directory and run this command finally create entity file but just create database mapping not complete entity.
Use examples below,
php bin/console doctrine:mapping:import --filter="FollowedLink" ApiBundle annotation
php bin/console doctrine:generate:entities ApiBundle/Entity/FollowedLink
Upvotes: 1