Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Symfony4 Generating Entities from an Existing Database fails

I build my beautiful database and now I want to generate entities in symfony 4 using doctrine. I tried php bin/console doctrine:mapping:import 'App\Entity' annotation --path=src/Entity, but I'm getting error: Property "idproduction" in "Person" was already declared, but it must be declared only once and nothing is generated.

Here is my DB schema, I'm using foreign keys for primary key in connection tables and I've read somewhere that it can be an issue, but I dont want to change my design.

Please send help :c

Comments