DDC-3148: ResultSetMappingBuilder::generateSelectClause ignores quoted column names #3927

doctrinebot opened this Issue Jun 2, 2014 · 0 comments

2 participants


Jira issue originally created by user c.ruhstaller:

If an entity has a quoted column (Magic Words etc.) and you want to use "generateSelectClause" for the specific entity it won't return the quoted name, just the plain name. If the name is a SQL Magic Word the corresponding SQL will fail.

Exp.: "profile.real" (wrong) instead of "profile.real".

File: Doctrine/ORM/Query/ResultSetMappingBuilder.php
Function: generateSelectClause

Line 445:
$sql .= " AS " . $columnName;

Example Entity:
class Profile
* @ORM\Column(name="real", type="boolean")
protected $real=false;

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