Skip to content
Snippets Groups Projects
Commit 4d22b993 authored by Martynas Sudintas's avatar Martynas Sudintas
Browse files

FilteredQuery::toArray is brought up like others

parent 10285406
No related branches found
No related tags found
No related merge requests found
......@@ -69,8 +69,8 @@ class FilteredQuery extends AbstractFilter implements BuilderInterface
$output = [];
$output['filter'] = parent::toArray();
if ($this->query !== null) {
$output['query'] = $this->query->toArray();
if ($this->query) {
$output['query'][$this->getQuery()->getType()] = $this->getQuery()->toArray();
}
return $output;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment