Add method to interface
This commit is contained in:
parent
9385a600cf
commit
be39afa2f4
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
namespace Doctrine\ORM\Persisters;
|
namespace Doctrine\ORM\Persisters;
|
||||||
|
|
||||||
|
use Doctrine\Common\Collections\Criteria;
|
||||||
use Doctrine\ORM\EntityManager;
|
use Doctrine\ORM\EntityManager;
|
||||||
use Doctrine\ORM\PersistentCollection;
|
use Doctrine\ORM\PersistentCollection;
|
||||||
|
|
||||||
@ -203,6 +204,14 @@ abstract class AbstractCollectionPersister implements CollectionPersister
|
|||||||
throw new \BadMethodCallException("Selecting a collection by index is not supported by this CollectionPersister.");
|
throw new \BadMethodCallException("Selecting a collection by index is not supported by this CollectionPersister.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function loadCriteria(PersistentCollection $coll, Criteria $criteria)
|
||||||
|
{
|
||||||
|
throw new \BadMethodCallException("Filtering a collection by Criteria is not supported by this CollectionPersister.");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the SQL statement used for deleting a row from the collection.
|
* Gets the SQL statement used for deleting a row from the collection.
|
||||||
*
|
*
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
namespace Doctrine\ORM\Persisters;
|
namespace Doctrine\ORM\Persisters;
|
||||||
|
|
||||||
|
use Doctrine\Common\Collections\Criteria;
|
||||||
use Doctrine\ORM\PersistentCollection;
|
use Doctrine\ORM\PersistentCollection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -136,4 +137,14 @@ interface CollectionPersister
|
|||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function get(PersistentCollection $collection, $index);
|
public function get(PersistentCollection $collection, $index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads association entities matching the given Criteria object.
|
||||||
|
*
|
||||||
|
* @param \Doctrine\ORM\PersistentCollection $persistentCollection
|
||||||
|
* @param \Doctrine\Common\Collections\Criteria $criteria
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function loadCriteria(PersistentCollection $collection, Criteria $criteria);
|
||||||
}
|
}
|
||||||
|
@ -553,11 +553,7 @@ class ManyToManyPersister extends AbstractCollectionPersister
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads Entities matching the given Criteria object.
|
* {@inheritDoc}
|
||||||
*
|
|
||||||
* @param PersistentCollection $coll
|
|
||||||
* @param \Doctrine\Common\Collections\Criteria $criteria
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function loadCriteria(PersistentCollection $coll, Criteria $criteria)
|
public function loadCriteria(PersistentCollection $coll, Criteria $criteria)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user