Fixed wrong type in documentation of manual provider
This commit is contained in:
parent
59ba64cfe1
commit
5de1f5ca2d
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue