Doctrine\ORM\Query\Parser::match
Attempts to match the given token with the current lookahead token.
If they match, updates the lookahead token; otherwise raises a syntax error.
Signature
public function match(
$token )
Parameters
$token
—
Returns
- void
Errors/Exceptions
-
QueryException
- If the tokens dont match.