From 5de1f5ca2d0c2ecc932033abdd8241516482f2da Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Mon, 6 Aug 2012 23:24:27 +0100 Subject: [PATCH] Fixed wrong type in documentation of manual provider --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4c6b0c2..4458e1e 100644 --- a/README.md +++ b/README.md @@ -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)); } }