440c36f537
Conflicts: Command/PopulateCommand.php Command/SearchCommand.php DependencyInjection/Configuration.php Doctrine/AbstractElasticaToModelTransformer.php Doctrine/AbstractListener.php Doctrine/MongoDB/ElasticaToModelTransformer.php Doctrine/ORM/ElasticaToModelTransformer.php Doctrine/RepositoryManager.php Finder/TransformedFinder.php Paginator/PaginatorAdapterInterface.php Paginator/RawPaginatorAdapter.php Persister/ObjectPersister.php Propel/ElasticaToModelTransformer.php Subscriber/PaginateElasticaQuerySubscriber.php Tests/DataCollector/ElasticaDataCollectorTest.php Tests/Doctrine/AbstractProviderTest.php Tests/Doctrine/RepositoryManagerTest.php Tests/Manager/RepositoryManagerTest.php Tests/RepositoryTest.php Transformer/ElasticaToModelTransformerCollection.php composer.json
19 lines
463 B
PHP
19 lines
463 B
PHP
<?php
|
|
|
|
namespace FOS\ElasticaBundle\Transformer;
|
|
|
|
/**
|
|
* Maps Elastica documents with model objects
|
|
*/
|
|
interface ModelToElasticaTransformerInterface
|
|
{
|
|
/**
|
|
* Transforms an object into an elastica object having the required keys
|
|
*
|
|
* @param object $object the object to convert
|
|
* @param array $fields the keys we want to have in the returned array
|
|
* @return \Elastica_Document
|
|
**/
|
|
function transform($object, array $fields);
|
|
}
|