From ca529d19d43929157d72afe7690930f9f847ed44 Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Mon, 7 Jul 2014 19:50:07 +1000 Subject: [PATCH] Use fully qualified primary key name --- modules/backend/behaviors/RelationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index 9052dc6cc..8c5f22b04 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -675,7 +675,7 @@ class RelationController extends ControllerBehavior */ $existingIds = $this->findExistingRelationIds(); if (count($existingIds)) { - $query->whereNotIn('id', $existingIds); + $query->whereNotIn($this->relationModel->getQualifiedKeyName(), $existingIds); } });