Posts by Marcio Moreira • 41 points
2 posts
-
2
votes1
answer436
viewsQ: Symfony Single id is not allowed on Composite Primary key in Entity
I have a view, where Mapeei 3 fields as primary key and 2 of these fields are foreign keys As below: /** * @var NotaFiscal * @ORM\Id * @ORM\ManyToOne(targetEntity="NotaFiscal", inversedBy="itens") *…
-
2
votes1
answer165
viewsQ: Laravel - Relationship Manytomany Extra Columns
I have the following scenario in a database: Tables: User id, name email Enterprise id name User company id_usuario id_empresa start date end date In this scenario, I need to bring the information…