DDC-3621: Support embeddables in partial object query #4449

Closed
opened 2026-01-22 14:41:50 +01:00 by admin · 7 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 17, 2015).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user krixon:

Hi,

Currently it's not possible to combine embeddables and partial objects - for example:

SELECT PARTIAL u.{id, name.first, name.last} FROM User

This results in an exception from the parser.

Is this just as simple as making the following change to Parser::PartialObjectExpression() line 1782?

// before
$partialFieldSet[] = $this->lexer->token['value'];

// after
$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;
Originally created by @doctrinebot on GitHub (Mar 17, 2015). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user krixon: Hi, Currently it's not possible to combine embeddables and partial objects - for example: `SELECT PARTIAL u.{id, name.first, name.last} FROM User` This results in an exception from the parser. Is this just as simple as making the following change to Parser::PartialObjectExpression() line 1782? ``` // before $partialFieldSet[] = $this->lexer->token['value']; // after $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; ```
admin added the Improvement label 2026-01-22 14:41:50 +01:00
admin closed this issue 2026-01-22 14:41:51 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 17, 2015):

@doctrinebot commented on GitHub (Mar 17, 2015): - depends on [DDC-3630: [GH-1343] Support embeddables in partial object query expression [DDC-3621]](http://www.doctrine-project.org/jira/browse/DDC-3630)
Author
Owner

@doctrinebot commented on GitHub (Mar 23, 2015):

Comment created by krixon:

doctrinebot automatically opened DDC-3621 when I issued a PR, so closing this issue as a duplicate.

@doctrinebot commented on GitHub (Mar 23, 2015): Comment created by krixon: doctrinebot automatically opened [DDC-3621](http://www.doctrine-project.org/jira/browse/DDC-3621) when I issued a PR, so closing this issue as a duplicate.
Author
Owner

@doctrinebot commented on GitHub (Mar 23, 2015):

Issue was closed with resolution "Duplicate"

@doctrinebot commented on GitHub (Mar 23, 2015): Issue was closed with resolution "Duplicate"
Author
Owner

@doctrinebot commented on GitHub (Mar 23, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1343] was labeled:
https://github.com/doctrine/doctrine2/pull/1343

@doctrinebot commented on GitHub (Mar 23, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1343] was labeled: https://github.com/doctrine/doctrine2/pull/1343
Author
Owner

@doctrinebot commented on GitHub (Mar 23, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1343] was unlabeled:
https://github.com/doctrine/doctrine2/pull/1343

@doctrinebot commented on GitHub (Mar 23, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1343] was unlabeled: https://github.com/doctrine/doctrine2/pull/1343
Author
Owner

@doctrinebot commented on GitHub (Mar 23, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1343] was assigned:
https://github.com/doctrine/doctrine2/pull/1343

@doctrinebot commented on GitHub (Mar 23, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1343] was assigned: https://github.com/doctrine/doctrine2/pull/1343
Author
Owner

@doctrinebot commented on GitHub (Mar 23, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1343] was merged:
https://github.com/doctrine/doctrine2/pull/1343

@doctrinebot commented on GitHub (Mar 23, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1343] was merged: https://github.com/doctrine/doctrine2/pull/1343
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4449