Skip to content

Commit

Permalink
Add isMemberOf and isInstanceOf to Expr helper list (#10104)
Browse files Browse the repository at this point in the history
* Add isMemberOf and isInstanceOf to Expr helper list

* Apply suggestions from code review

Co-authored-by: Alexander M. Turek <me@derrabus.de>
  • Loading branch information
ker0x and derrabus committed Oct 26, 2022
1 parent 7cf4074 commit 3133bf0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/en/reference/query-builder.rst
Expand Up @@ -434,6 +434,12 @@ complete list of supported helper methods available:
// Example - $qb->expr()->isNotNull('u.id') => u.id IS NOT NULL
public function isNotNull($x); // Returns string
// Example - $qb->expr()->isMemberOf('?1', 'u.groups') => ?1 MEMBER OF u.groups
public function isMemberOf($x, $y); // Returns Expr\Comparison instance
// Example - $qb->expr()->isInstanceOf('u', Employee::class) => u INSTANCE OF Employee
public function isInstanceOf($x, $y); // Returns Expr\Comparison instance
/** Arithmetic objects **/
Expand Down

0 comments on commit 3133bf0

Please sign in to comment.