I already have a MySQL database, so I want to create mapping metadata from an existing database .
php app/console doctrine:mapping:convert xml ./src/MainBundle/Resources/config/doctrine/metadata/orm --from-database --force
However, I got the following exception
[Doctrine\ORM\Mapping\MappingException] Property "customerid" in "Accountcustomer" was already declared, but it must be declared only once
I did not use customerId in any primary / compound key anywhere in the database, however I used it as a foreign key several times.
However, I do not know how to have customerId in a composite key or another primary key can affect this.
source share