Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-ALPHA4
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
Since the Schema refactoring, misc case column names do not work again.
<?php
/**
* @Entity @Table(name="user")
*/
class User
{
/** @Id @Column(name="userId", type="integer") @GeneratedValue(strategy="AUTO") */
public $id;
/** @Column(name="name", type="string") */
public $name;
}
This crashes the SchemaTool when creating the database schema:
SchemaTool: exception 'Doctrine\DBAL\Schema\SchemaException' with message 'An unknown column-name userId was given.' in .../doctrine/lib/Doctrine/DBAL/Schema/SchemaException.php:60
This may be because of several strtolower calls, e.g. in Doctrine\DBAL\Schema\Table ("$columnName = strtolower($columnName);")