模型关联数据修正
This commit is contained in:
@@ -41,7 +41,7 @@ class ProjectModal extends Model
|
||||
*/
|
||||
public function labels(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(LabelModal::class, 'project_labels_relations', 'project_id', 'label_id');
|
||||
return $this->belongsToMany(LabelModal::class, 'project_label_relations', 'project_id', 'label_id');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -68,7 +68,7 @@ class ProjectModal extends Model
|
||||
*/
|
||||
public function technologyStacks(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(TechnologyStackModal::class, 'project_technology_stacks_relations', 'project_id', 'technology_stack_id');
|
||||
return $this->belongsToMany(TechnologyStackModal::class, 'project_technology_stacks_relations', 'project_id', 'technology_stacks_id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user