Use fully qualified primary key name
This commit is contained in:
parent
bab2f5c61c
commit
ca529d19d4
|
|
@ -675,7 +675,7 @@ class RelationController extends ControllerBehavior
|
|||
*/
|
||||
$existingIds = $this->findExistingRelationIds();
|
||||
if (count($existingIds)) {
|
||||
$query->whereNotIn('id', $existingIds);
|
||||
$query->whereNotIn($this->relationModel->getQualifiedKeyName(), $existingIds);
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue