Closed lilHermit closed 8 years ago
I don't understand where the constructor public function __construct($id = '', $data = array(), $type = '', $index = '')
comes from
Doh! Just spotted my issue!
I was extending the wrong Document
(Elastica\Document
instead of Cake\ElasticSearch\Document
). Which is where public function __construct($id = '', $data = array(), $type = '', $index = '')
came from. Thanks for spotting that! ;-)
:)
I'm using ES2.3.4 and branch
1.0
and during the marshalling process the values passed to the__construct
seem incorrect._GET /library/apps/search
Now when I do the following in my controller
I get the following
Doing
$apps->title
and$apps->questions
result inOn inspection of the Document
__construct
$id and $data seems to being passed incorrectly asoutputs the following (what seems like data rather than id)
Sorry for the long post ;-)