Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3925

How to generate entity and repository from an existing database? [duplicate]

$
0
0

This question already has an answer here:

I already have a database created. Now I need to generate the entities from this given database. I tried following commands:

php bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity

and to generate getters and setters.

php bin/console make:entity --regenerate

By this, it is creating the Entity but Repository is not being created.


Viewing all articles
Browse latest Browse all 3925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>