Issue
I want to add doctrine framework to my custom php project. How can I create model entities by db tables with doctrine.
Solution
What doctrine version are you using? With the latest version you can use this after install doctrine in your project:
php bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity
You must change the directory and the type (annotation, xml, yml), and you must have configured the connection to the database where the tables are.
Answered By - MR Mark II Answer Checked By - Candace Johnson (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.