BC BREAK: Add handlesObject method to ObjectPersisterInterface

This commit is contained in:
Tim Nagel 2014-09-21 20:06:06 +10:00
parent d0ce82ac2a
commit 71a86cada5
2 changed files with 10 additions and 0 deletions

View file

@ -12,3 +12,5 @@ https://github.com/FriendsOfSymfony/FOSElasticaBundle/compare/v3.0.4...v3.1.0
* 3.1.0
* 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.

View file

@ -68,4 +68,12 @@ interface ObjectPersisterInterface
* @param array $identifiers array of domain model object identifiers
*/
public function deleteManyByIdentifiers(array $identifiers);
/**
* If the object persister handles the given object.
*
* @param object $object
* @return bool
*/
public function handlesObject($object);
}