I need to import database structure from existing database. I tried with
doctrine:mapping:import "App\Entity" annotation --path=src/Entity
doctrine:mapping:convert xml src/Entity --from-database --force
And I have this error : Table [tableName] has no primary key
So I would import only tables than I need for my project following this topic : Generating a single Entity from existing database using symfony2 and doctrine
and I have the same error.
Have you got a solution for me please?
Thanks in advance.