Changed ObjectPersiter::transformToElasticaDocument from protected to public to allow usage as a converter service

This commit is contained in:
Sébastien Lavoie 2012-05-29 14:28:20 -04:00
parent 2b858f0e42
commit 408b7aeebe

View file

@ -100,7 +100,7 @@ class ObjectPersister implements ObjectPersisterInterface
* @param object $object
* @return Elastica_Document the elastica document
*/
protected function transformToElasticaDocument($object)
public function transformToElasticaDocument($object)
{
return $this->transformer->transform($object, $this->fields);
}