1
0
mirror of synced 2025-02-20 22:23:14 +03:00

fallback to persister count

This commit is contained in:
Michaël Gallego 2014-01-03 09:30:06 +01:00
parent fbbe922cb6
commit e5ba28676d

View File

@ -279,6 +279,6 @@ abstract class AbstractCollectionPersister implements CachedCollectionPersister
*/
public function loadCriteria(PersistentCollection $collection, Criteria $criteria)
{
throw new \BadMethodCallException("Filtering a collection by Criteria is not supported by this CollectionPersister.");
return $this->persister->loadCriteria($collection, $criteria);
}
}