BC BREAK: Add handlesObject
method to ObjectPersisterInterface
This commit is contained in:
parent
d0ce82ac2a
commit
71a86cada5
|
@ -12,3 +12,5 @@ https://github.com/FriendsOfSymfony/FOSElasticaBundle/compare/v3.0.4...v3.1.0
|
||||||
* 3.1.0
|
* 3.1.0
|
||||||
|
|
||||||
* BC BREAK: `DoctrineListener#scheduleForDeletion` access changed to private.
|
* BC BREAK: `DoctrineListener#scheduleForDeletion` access changed to private.
|
||||||
|
* BC BREAK: `ObjectPersisterInterface` gains the method `handlesObject` that
|
||||||
|
returns a boolean value if it will handle a given object or not.
|
||||||
|
|
|
@ -68,4 +68,12 @@ interface ObjectPersisterInterface
|
||||||
* @param array $identifiers array of domain model object identifiers
|
* @param array $identifiers array of domain model object identifiers
|
||||||
*/
|
*/
|
||||||
public function deleteManyByIdentifiers(array $identifiers);
|
public function deleteManyByIdentifiers(array $identifiers);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If the object persister handles the given object.
|
||||||
|
*
|
||||||
|
* @param object $object
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function handlesObject($object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue