Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Fixing custom primary key primary key column name (#881)
Browse files Browse the repository at this point in the history
Swapping this variable seems to resolve the issue.
  • Loading branch information
carlwhittick authored and rijkvanzanten committed Apr 22, 2019
1 parent ccc8641 commit d25fae0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1755,7 +1755,7 @@ public function loadOneToManyRelationships($entries, $columns, array $params = [
// $row->getId(); RowGateway perhaps?
$relationalColumnId = $row[$relationalColumnName];
if (is_array($relationalColumnId) && !empty($relationalColumnId)) {
$relationalColumnId = $relationalColumnId[$tableGateway->primaryKeyFieldName];
$relationalColumnId = $relationalColumnId[$primaryKey];
}

if ($filterFields && !in_array('*', $filterFields)) {
Expand Down

0 comments on commit d25fae0

Please sign in to comment.