DDC-2056: [GH-462] [DDC-2055] Generate SELECT clause from ResultSetMappingBuilder #2736

doctrinebot opened this Issue Oct 3, 2012 · 3 comments

2 participants


Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of beberlei:

Url: #462


Add support to generate entity result parts of the SELECT clause from a ResultSetMappingBuilder instance. Add support for column incrementing.


public function testGenerateSelectClauseIncrement()
    $rsm = new ResultSetMappingBuilder($this->_em);
    $rsm->addRootEntityFromClassMetadata('Doctrine\Tests\Models\CMS\CmsUser', 'u', ResultSetMappingBuilder::COLUMN*RENAMING*INCREMENT);

    $selectClause = $rsm->generateSelectClause();

    $this->assertEquals('u.id AS id0, u.status AS status1, u.username AS username2, u.name AS name3, u.email*id AS email*id4', $selectClause);


This only generates the entity result clauses, not the ones for scalar results! Because we don't know what the scalar result actually means.


Comment created by @beberlei:

A related Github Pull-Request [GH-462] was closed


Issue was closed with resolution "Fixed"


Comment created by @doctrinebot:

A related Github Pull-Request [GH-462] was closed:

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.4 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment