Argument '1' passed to where() is expected to be of type Doctrine\ORM\QueryBuilder, string givenPHP(PHP0406))
# Doctrine\ORM\QueryBuilder::where
function QueryBuilder::where(mixed ...$predicates): static
Specifies one or more restrictions to the query result. Replaces any previously specified restrictions, if any.
$qb = $em->createQueryBuilder()
->select('u')
->from('User', 'u')
->where('u.id = ?');
// You can optionally programmatically build and/or expressions
$qb = $em->createQueryBuilder();