I have Entity classes generated with Doctrine ORM, and ZF2.
I changed a table structure and I want to update an entity class, so I am trying to regenerate the entity class but it's not working.
I used the following code:
vendor/doctrine/doctrine-module/bin/doctrine-module orm:convert-mapping --namespace="Album\Entity\" --force --from-database annotation ./module/Album/src/clear
I got the error:
[Doctrine\ORM\Mapping\MappingException]
Property "status" in "Album\Entity\TestRun" was already declared, but it must be declared only once
orm:convert-mapping [--filter="..."] [--force] [--from-database] [--extend[="..."]] [--num-spaces[="..."]] [--namespace[="..."]] to-type dest-path
I want to re-generate the entity class for a particular table