symfony get only 1 entity from database code example
Example: symfony doctrine existing database
$ php bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity
$ php bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity