1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00
This commit is contained in:
Fabio B. Silva 2012-12-17 10:03:41 -02:00
parent 2e90cd9924
commit 99ab58febd

View file

@ -69,6 +69,7 @@ class IdentityFunction extends FunctionNode
$joinColumn = null;
foreach ($assoc['joinColumns'] as $mapping) {
if($mapping['referencedColumnName'] === $field['columnName']) {
$joinColumn = $mapping;
@ -97,14 +98,13 @@ class IdentityFunction extends FunctionNode
$this->pathExpression = $parser->SingleValuedAssociationPathExpression();
if ($parser->getLexer()->lookahead['type'] == Lexer::T_COMMA) {
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);
}
}