1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Support embeddables in partial object query expression [DDC-3621]

This commit is contained in:
Karl Rixon 2015-03-17 15:46:01 +00:00
parent 2fb11cdf05
commit 778ed04eac

View File

@ -1784,8 +1784,16 @@ class Parser
while ($this->lexer->isNextToken(Lexer::T_COMMA)) {
$this->match(Lexer::T_COMMA);
$this->match(Lexer::T_IDENTIFIER);
$partialFieldSet[] = $this->lexer->token['value'];
$field = $this->lexer->token['value'];
while ($this->lexer->isNextToken(Lexer::T_DOT)) {
$this->match(Lexer::T_DOT);
$this->match(Lexer::T_IDENTIFIER);
$field .= '.'.$this->lexer->token['value'];
}
$partialFieldSet[] = $field;
}
$this->match(Lexer::T_CLOSE_CURLY_BRACE);