Skip to content

Commit de6a36b

Browse files
committed
Fixes typo
1 parent ac33d1c commit de6a36b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LinkManyBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ protected function extractPrimaryKey($data, $relation)
333333
$primaryKey = $modelClass::primaryKey();
334334

335335
if (count($primaryKey) === 1) {
336-
return ArrayHelper::getColumn($data, $primaryKey[0]);
336+
return ArrayHelper::getValue($data, $primaryKey[0]);
337337
}
338338

339339
$result = [];

0 commit comments

Comments
 (0)