Add MapperInterface with a doctrine implementation
This commit is contained in:
parent
40827bb2a1
commit
4ad7d9a525
2 changed files with 77 additions and 0 deletions
17
MapperInterface.php
Normal file
17
MapperInterface.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace FOQ\ElasticaBundle;
|
||||
|
||||
/**
|
||||
* Maps Elastica documents with persisted objects
|
||||
*/
|
||||
interface MapperInterface
|
||||
{
|
||||
/**
|
||||
* Transforms an array of elastica objects into an array of
|
||||
* model objects fetched from the doctrine repository
|
||||
*
|
||||
* @return array
|
||||
**/
|
||||
function fromElasticaObjects(array $elasticaObjects);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue