eee
This commit is contained in:
@@ -278,7 +278,7 @@ class Model extends Base\Model
|
||||
throw new Exception("Need join table primary key.");
|
||||
}
|
||||
|
||||
$relation = $this->getRelation();
|
||||
$relation = di(Relation::class);
|
||||
|
||||
$primaryKey = str_replace('\\\\', '_', $modelName) . '_' . $foreignKey . '_' . $value;
|
||||
if (!$relation->hasIdentification($primaryKey)) {
|
||||
@@ -339,7 +339,7 @@ class Model extends Base\Model
|
||||
throw new Exception("Need join table primary key.");
|
||||
}
|
||||
|
||||
$relation = $this->getRelation();
|
||||
$relation = di(Relation::class);
|
||||
|
||||
$primaryKey = str_replace('\\\\', '_', $modelName) . '_' . $foreignKey . '_' . implode('_', $value);
|
||||
if (!$relation->hasIdentification($primaryKey)) {
|
||||
|
||||
Reference in New Issue
Block a user