1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

Fix tests

This commit is contained in:
Michaël Gallego 2014-01-03 09:27:21 +01:00
parent c69b7562ab
commit fbbe922cb6

View file

@ -20,6 +20,7 @@
namespace Doctrine\ORM\Cache\Persister;
use Doctrine\Common\Collections\Criteria;
use Doctrine\ORM\Cache\EntityCacheKey;
use Doctrine\ORM\Cache\CollectionCacheKey;
use Doctrine\ORM\Persisters\CollectionPersister;
@ -272,4 +273,12 @@ abstract class AbstractCollectionPersister implements CachedCollectionPersister
{
return $this->persister->slice($collection, $offset, $length);
}
/**
* {@inheritDoc}
*/
public function loadCriteria(PersistentCollection $collection, Criteria $criteria)
{
throw new \BadMethodCallException("Filtering a collection by Criteria is not supported by this CollectionPersister.");
}
}