Fixed wrong type in documentation of manual provider
This commit is contained in:
parent
59ba64cfe1
commit
5de1f5ca2d
|
@ -247,9 +247,9 @@ Its class must implement `FOQ\ElasticaBundle\Provider\ProviderInterface`.
|
|||
{
|
||||
$loggerClosure('Indexing users');
|
||||
|
||||
$this->userType->addDocuments(array(
|
||||
array('username' => 'Bob')
|
||||
));
|
||||
$document = new \Elastica_Document();
|
||||
$document->setData(array('username' => 'Bob'));
|
||||
$this->userType->addDocuments(array($document));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue