Fix tests
This commit is contained in:
parent
c69b7562ab
commit
fbbe922cb6
1 changed files with 9 additions and 0 deletions
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue