Skip to content

Commit bb63dfd

Browse files
authored
Merge pull request #20 from Linfuby/master
fixed assoc array
2 parents 25e59cc + 5ee40aa commit bb63dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPixie/ORM/Loaders/Loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function asArray($entitiesAsObjects = false, $keyField = null)
2525
if($withKey) {
2626
$array[] = $value;
2727
}else{
28-
$field = $entity->getField($field);
28+
$field = $entity->getField($keyField);
2929
$array[$field] = $value;
3030
}
3131
}

0 commit comments

Comments
 (0)