Merge pull request #701 from karnold/develop

when building belongsToMany relationships in controllers, the lack of a ...
This commit is contained in:
Samuel Georges 2014-10-17 08:13:19 +11:00
commit c48e10cbf5
1 changed files with 2 additions and 2 deletions

View File

@ -414,7 +414,7 @@ class RelationController extends ControllerBehavior
*/
protected function findExistingRelationIds($checkIds = null)
{
$foreignKeyName = $this->relationModel->getKeyName();
$foreignKeyName = $this->relationModel->table . '.' . $this->relationModel->getKeyName();
$results = $this->relationObject
->getBaseQuery()