Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Adapter/Zend.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function getDependents($parentClass, $ids, $dependentClass, $where = [],
}

// If only one ID was asked for, return just that group instead of a size-one array of groups
return count($ids) > 1 ? $entities : $returnableEntities;
return count((array) $ids) > 1 ? $entities : $returnableEntities;
}

public function addDependent(Entity_Abstract $parent, Entity_Abstract $dependent) {
Expand Down