DWQA QuestionsCategory: Doctrinehow-to-generate-doctrine-entities-for-existing-schema-in-laravel
Manpreet Kaur asked 5 years ago

Step 1. Run this command php

artisan doctrine:convert:mapping –from-database annotation app/Entities

This command will read  database schema and create the entities with annotation mapping in my ./app/Entities location

Step 2.

php artisan doctrine:generate:entities –generate-annotations= “true”  app/Entities

This command will create entity classes with getter and setter methods from your mapping information.

“app/Entity” : This is your entity file path.