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".
$sql .= " AS " . $columnName;
* @ORM\Column(name="real", type="boolean")