Closed karlra closed 8 years ago
The notification are: Notice: Undefined property: stdClass::$response in \vendor\basho\riak\src\Riak\Command\Search\Response.php on line 40
Notice: Trying to get property of non-object in \vendor\basho\riak\src\Riak\Command\Search\Response.php on line 40
Warning: Invalid argument supplied for foreach() in \vendor\basho\riak\src\Riak\Command\Search\Response.php on line 40
The issue is that the $response property doesn't exist for malformed queries. It would probably be better to throw Exceptions in this situation.
$response = (new \Basho\Riak\Command\Builder\Search\FetchObjects($riak)) ->withIndexName('myindex') ->withQuery('ffffff') ->build() ->execute();
@karlra thanks for bringing this to our attention, I will check into it.
Closing this out, please comment if you still encounter issues.
The notification are: Notice: Undefined property: stdClass::$response in \vendor\basho\riak\src\Riak\Command\Search\Response.php on line 40
Notice: Trying to get property of non-object in \vendor\basho\riak\src\Riak\Command\Search\Response.php on line 40
Warning: Invalid argument supplied for foreach() in \vendor\basho\riak\src\Riak\Command\Search\Response.php on line 40
The issue is that the $response property doesn't exist for malformed queries. It would probably be better to throw Exceptions in this situation.
$response = (new \Basho\Riak\Command\Builder\Search\FetchObjects($riak)) ->withIndexName('myindex') ->withQuery('ffffff') ->build() ->execute();