diff --git a/src/Adapter/Zend.php b/src/Adapter/Zend.php index 5968243..8718480 100644 --- a/src/Adapter/Zend.php +++ b/src/Adapter/Zend.php @@ -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) {