Fixed wrong type in documentation of manual provider

This commit is contained in:
Richard Miller 2012-08-06 23:24:27 +01:00
parent 59ba64cfe1
commit 5de1f5ca2d

View file

@ -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));
}
}