Questions tagged as 'relacionamento'

1
answer

Recursive query does not return records when the parent product and the child product have the same code

I have a table that maps a production line. Home The fields are: Product: Output product of the machine. Home ParentProduct: Input product. Home Machine: Machine code. Home I'm using CTE's to get the data recursively. This works when the Produc...
asked by 23.04.2018 / 15:00
0
answers

Connections in MYSQL Workbench

Good evening, could anyone give an explanation of the difference of a dotted and continuous relationship in MYSQL Workbench? Is the following activity correct? Ready activity: Activitystatement:     
asked by 18.06.2018 / 04:24
0
answers

Large error 5.6 "Undefined property"

I'm trying to list an association table, in my case it's the class table, which associates officials (teachers) and students. I gave a good researched before posting this question but I could not solve the problem. Role model <?ph...
asked by 10.04.2018 / 06:51
0
answers

Relate Identity table (AspNetUser) with other table in my application

I am developing an application that uses Asp.Net MVC Identity, I have isolated the Identity part in the CrossCutting layer, and created a layer called Data where I have the Entity Framework where I am mapping other tables that I will use in the (...
asked by 09.03.2018 / 14:29
0
answers

query with many-to-many polymorphic laravel?

I have a polymorphic m-m relationship in my bank where:    class (id, name)       student (id, name)       lesson (id, name)       classable (class_id, classable_id, classable_type) A class has several students and several lessons. a s...
asked by 20.02.2018 / 20:52
0
answers

Distant relationship with Laravel 5.5

Well, I need some urgent help! I have the following situation: Tables: saidas id ... saidas_produto id_saida id_entrada_produto entradas_produtos id id_entrada id_produto ... entradas id ... My warehouse...
asked by 29.01.2018 / 15:03
0
answers

programming in Ruby on Rails

I have a form and I include a médicos table, and in this table there is a enum field where you can choose the cooperativa option, but I have to check in another cooperativa table if this doctor has a cooperativa...
asked by 14.11.2017 / 15:50
1
answer

Relationship 1 - 1

I'm having a bit of trouble drawing my relational database model. The idea follows the following principle: You would have a login system, and for this a table user There would also be 3 types of people who would log in to the prod...
asked by 16.09.2017 / 01:32
1
answer

Many to many relationship with id of type UUID Laravel 5.4 Eloquent ORM

I'm following the Laravel documentation to make this relationship with the id's type. In the methods of the relationship I specified the pivot table and the IDS fields, however I was debugging the tinker to see if it was really working and it re...
asked by 04.08.2017 / 15:52
2
answers

Error making relationship with laravel

   Call to undefined method Illuminate \ Database \ Query \ Builder :: BeltTo () My Models <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Imovel extends Model { //definindo nome da tabela na migra...
asked by 02.08.2017 / 20:06