Questions tagged as 'orm'

1
answer

How to create entities with compound key in doctrine?

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 datab...
asked by 05.04.2017 / 16:19
1
answer

Eloquent ORM ManytoMany constraint error 1452

I'm developing an application using Eloquent ORM, but I'm having a problem with the N to N relationship, The relationship is this: TherecordsI'musingasatestintheProductGroupstable: TherecordsI'musingasatestintheSubassemblyTabletable: Asyouca...
asked by 17.07.2018 / 23:09
1
answer

Relationship between ORM tables

I'm having a question, regarding ORM, I use Doctrine, but understanding ORM would help. The relation of idAninal of table consulta , with table Animal , would be ManyToMany , ManyToOne , or OneToMany ? Confor...
asked by 24.04.2017 / 03:40
1
answer

DQL Doctrine with WHERE does not work

Good afternoon! I'm trying to perform a query on a user table that has FK from 4 other tables, but I guess that's not the case, and I make 2 filters in WHERE, for example WHERE login = 'string' AND id <> numero; . But it does not...
asked by 24.07.2014 / 21:54
1
answer

Update edmx file is not working

Whenever I do: UPDATE MODEL FROM DATABASE on top of my edmx file, it does everything right, including showing the table to be updated or the fields. He makes no mistake, he proceeds as if everything is fine. But when I conclude, it does not chan...
asked by 26.05.2014 / 03:13
1
answer

Relationship in doctrine

I have a problem that is analogous to the following situation: A car may or may not have a driver, ie a car may have a minimum of 0 and a maximum of 1 driver. A driver may or may not have a car, ie a driver can have a minimum of 0 and a ma...
asked by 17.07.2014 / 05:36
1
answer

Filter tables to be mapped by Doctrine from the EntityManager (without command line)

I'm developing a feature in my application that automatically map and generate entities. The problem is that the user can select the tables that he wants to map, so I must insert a filter with the name of the tables to be converted. To do thi...
asked by 17.07.2014 / 13:46
1
answer

Persisting project teams

In a project management system we have the "Users" and "Projects" entities. Iwouldliketoevolvethisbasicstructureintoastructurethatwouldinvolveteams.Example:Project1has3members.Whatisthebestwaytomaintainthisstructure?Wasthis?Whereauserwouldcr...
asked by 18.09.2018 / 04:46
0
answers

Dapper in rationing 1-1 where in class does not have the foreign key

When working with ORM it is common (will it be mandatory?) to create the model classes as if they were a mirror of the bank tables. But I have a different case and wanted to know if dapper works this way. In the bank I have the tables. Pro...
asked by 23.08.2018 / 22:23
0
answers

NHibernate error: No persister for

I would like help with the error when I try to write NHibernate records through XML mapping. The project has separate layers. In the domain project, my entity is: namespace NHibernateTesteWeb.Domain.Entity { public class Company...
asked by 14.07.2018 / 23:33