Skip to content

Commit

Permalink
Added search by identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jul 30, 2022
1 parent 71b62b4 commit eb7f74b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Queries/FindConnectorsQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ public function byId(Uuid\UuidInterface $id): void
};
}

/**
* @param string $identifier
*
* @return void
*/
public function byIdentifier(string $identifier): void
{
$this->filter[] = function (ORM\QueryBuilder $qb) use ($identifier): void {
$qb->andWhere('c.identifier = :identifier')->setParameter('identifier', $identifier);
};
}

/**
* @param string $sortBy
* @param string $sortDir
Expand Down

0 comments on commit eb7f74b

Please sign in to comment.