Questions tagged as 'relacionamento'

0
answers

How to do UPDATE 1 to 1, with four tables in laravel

I'm working with a database already populated. It has four tables (Student, Clinical, Family, and Compulsory Type), where Student receives foreignkey from the three tables; Model Student class Aluno extends Model{ public $timestamps...
asked by 28.11.2018 / 12:14
0
answers

Error making Hibernate relationship with Java

Good afternoon guys! I have a question in Hibernate. I have the following case Person - Client - Supplier But I can not make the relationship. follow my codes New Error 18:50:34,405 DEBUG [org.hibernate.SQL] - select SEQ_C...
asked by 01.11.2018 / 18:36
2
answers

I have a problem in the ManyToMany relationship in laravel if someone ouder help me?

Sorry, but I'm new to laravel, you're giving this error when I try to view the page: 'Trying to get property' name 'of non-object This is my controller public function index(){ $medicos = Medico::with("especializacaos")->get();...
asked by 28.10.2018 / 19:06
0
answers

Hibernate Relationship

Good afternoon person, I have this problem, it must first insert the person and then the client, he is not inserting either, if someone can help me to configure the models and hibernate to do this insert ERROR Hibernate: select...
asked by 01.11.2018 / 21:04
0
answers

Problem in saving many-to-many relationship with Entity Framework Core

I'm having trouble saving a many-to-many relationship with Entity Framework Core I have the following entities [Table("quadros")] public class Quadro : BaseEntity { public bool Ativo { get; set; } public string Titulo { get; set; }...
asked by 03.09.2018 / 03:08
0
answers

Mapping of list with sub list of tables for class

Hello; I have always had a question in this mapping, but in the current project I need to resolve it. It's the following, I have a Message table and a user table. I need to relate the users to the messages seen, to detect if it is a new messa...
asked by 19.08.2018 / 17:04
0
answers

Problem in creating foreign keys MySQL

I'm trying to implement a 1: 1 relationship between the Official table and the User table in the MySQL Workbench, but in generating the Diagram I see that the relationship always stays in 1: n, even with the UNIQUE constraint on the foreign key....
asked by 22.07.2018 / 19:32
0
answers

Save a JSON in the database or create an intermediate table?

Good evening! I'm in a small Dilemma, I'm building an application for event control, in this application I have an event that can have multiple guests in the Front end I'm thinking of using a component equal to this: Anyway,whatwouldbethebes...
asked by 09.07.2018 / 03:20
0
answers

Relationship at Laravel

Talk about it, I'm starting to use laravel and I have a problem when selecting some data. I have the following tables: users , jobs , projects , job_user . The table relationship of users and jobs is...
asked by 12.06.2018 / 03:39
0
answers

method detach () deleting data over

My method detach deletes all data from the student table (it removes the data from the membership table but deletes all data from another table) $team = Team::find($id); $team->students()->detach(); $team-&g...
asked by 02.05.2018 / 01:55