getPlainForeignKey -> getForeignKeyName

This commit is contained in:
Samuel Georges 2017-05-20 20:03:48 +10:00
parent 00ddd8e2b4
commit 605c8221a9
1 changed files with 1 additions and 1 deletions

View File

@ -1011,7 +1011,7 @@ class RelationController extends ControllerBehavior
*/
if (in_array($this->relationType, ['hasOne', 'hasMany'])) {
$newModel->setAttribute(
$this->relationObject->getPlainForeignKey(),
$this->relationObject->getForeignKeyName(),
$this->relationObject->getParentKey()
);
}