some formatting and cleaning up
This commit is contained in:
parent
300d189a9d
commit
77156b35aa
|
@ -38,7 +38,7 @@ class ObjectSerializerPersister extends ObjectPersister
|
||||||
*
|
*
|
||||||
* @param object $object
|
* @param object $object
|
||||||
* @return null
|
* @return null
|
||||||
**/
|
*/
|
||||||
public function replaceOne($object)
|
public function replaceOne($object)
|
||||||
{
|
{
|
||||||
$document = $this->transformToElasticaDocument($object);
|
$document = $this->transformToElasticaDocument($object);
|
||||||
|
|
|
@ -113,7 +113,6 @@ class ModelToElasticaAutoTransformerTest extends \PHPUnit_Framework_TestCase
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
if (!class_exists('Elastica\Document')) {
|
if (!class_exists('Elastica\Document')) {
|
||||||
;
|
|
||||||
$this->markTestSkipped('The Elastica library classes are not available');
|
$this->markTestSkipped('The Elastica library classes are not available');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,6 @@ class ModelToElasticaIdentifierTransformerTest extends \PHPUnit_Framework_TestCa
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
if (!class_exists('Elastica\Document')) {
|
if (!class_exists('Elastica\Document')) {
|
||||||
;
|
|
||||||
$this->markTestSkipped('The Elastica library classes are not available');
|
$this->markTestSkipped('The Elastica library classes are not available');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,8 @@ namespace FOS\ElasticaBundle\Transformer;
|
||||||
use Elastica\Document;
|
use Elastica\Document;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an elastica document with the id of
|
* Creates an Elastica document with the ID of
|
||||||
* the doctrine object as elastica document id
|
* the Doctrine object as Elastica document ID
|
||||||
*/
|
*/
|
||||||
class ModelToElasticaIdentifierTransformer extends ModelToElasticaAutoTransformer
|
class ModelToElasticaIdentifierTransformer extends ModelToElasticaAutoTransformer
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue