Skip to content

Commit

Permalink
Merge pull request #4 from AlexLisenkov/upgrade-dependencies
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
AlexLisenkov authored Mar 5, 2020
2 parents 69f3489 + b72acf6 commit 90cb680
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![https://packagist.org/packages/mnugter/jsonapi-rql-finder-bundle](https://img.shields.io/packagist/dt/mnugter/jsonapi-rql-finder-bundle)
![https://github.com/mnugter/jsonapi-rql-finder-bundle](https://img.shields.io/github/license/mnugter/jsonapi-rql-finder-bundle)
# jsonapi-bundle-rql-finder
An RQL Finder for [paknahad/jsonapi-bundle][1].

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
],
"require": {
"php": "^7.1",
"paknahad/jsonapi-bundle": ">=1.1",
"andreas-glaser/doctrine-rql": "^0.2"
"paknahad/jsonapi-bundle": "^3.0",
"andreas-glaser/doctrine-rql": "^0.3"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
11 changes: 10 additions & 1 deletion src/Finder/Rql.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,16 @@ public function setFieldManager(FieldManager $fieldManager): void
public function filterQuery(): void {
$rql = $this->request->get('rql');

ORMVisitorFactory::appendFiltersOnly($this->query, $rql);
if ($rql) {
ORMVisitorFactory::appendFiltersOnly($this->query, $rql);
}
}

/**
* {@inheritdoc}
*/
public function sortQuery(): void
{
}

/**
Expand Down

0 comments on commit 90cb680

Please sign in to comment.