1 | <?php |
||
20 | class ModelToElasticaIdentifierTransformer extends ModelToElasticaAutoTransformer |
||
21 | { |
||
22 | /** |
||
23 | * Creates an elastica document with the id of the doctrine object as id. |
||
24 | * |
||
25 | * @param object $object the object to convert |
||
26 | * @param array $fields the keys we want to have in the returned array |
||
27 | * |
||
28 | * @return Document |
||
29 | **/ |
||
30 | public function transform($object, array $fields) |
||
36 | } |
||
37 |