SingleValuedAssociationPathExpression ::= IdentificationVariable "." SingleValuedAssociationField
public SingleValuedAssociationPathExpression ( ) : Doctrine\ORM\Query\AST\PathExpression | ||
return | Doctrine\ORM\Query\AST\PathExpression |
/** * @override */ public function parse(\Doctrine\ORM\Query\Parser $parser) { $parser->match(Lexer::T_IDENTIFIER); $parser->match(Lexer::T_OPEN_PARENTHESIS); $this->pathExpression = $parser->SingleValuedAssociationPathExpression(); $parser->match(Lexer::T_CLOSE_PARENTHESIS); }
/** * {@inheritdoc} */ public function parse(Parser $parser) { $parser->match(Lexer::T_IDENTIFIER); $parser->match(Lexer::T_OPEN_PARENTHESIS); $this->pathExpression = $parser->SingleValuedAssociationPathExpression(); if ($parser->getLexer()->isNextToken(Lexer::T_COMMA)) { $parser->match(Lexer::T_COMMA); $parser->match(Lexer::T_STRING); $this->fieldMapping = $parser->getLexer()->token['value']; } $parser->match(Lexer::T_CLOSE_PARENTHESIS); }