I have a database that works with composite keys, and I'm implementing the use of the Laravel framework .
This is my bank structure:
I'm using doctrine as an ORM and found that I can not automatically generate the entities of the database, since the tables have composite keys. I am using the php artisan doctrine:convert:mapping annotation ./entidades --from-database --force
command. The return to this command is:
[Doctrine\ORM\Mapping\MappingException]
It is not possible to map entity 'FinContaspagar' with a composite primary key as part of the primary key of another entity 'FinContaspagarDetalhe#grupo'.
So, I'm creating the entities manually, but I've followed the doc tutorial regarding the creation of entities @ManyToOne @OneToMany
mas I still can not create the relationship in the right way. Does anyone know a way or tool to generate these entities or do you have some example like this of several composite keys?