Changed ObjectPersiter::transformToElasticaDocument from protected to public to allow usage as a converter service
This commit is contained in:
parent
2b858f0e42
commit
408b7aeebe
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue