getPlainForeignKey -> getForeignKeyName
This commit is contained in:
parent
00ddd8e2b4
commit
605c8221a9
|
|
@ -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()
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue