How to Generate Entities from an Existing Database
Caution
The doctrine:mapping:import command used to generate Doctrine entities
from existing databases was deprecated by Doctrine in 2019 and it’s no
longer recommended to use it.
Instead, you can use the make:entity command from Symfony Maker Bundle
to quickly generate the Doctrine entities of your application.