Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.2
-
Fix Version/s: 2.0.4
-
Component/s: Schema Managers
-
Labels:None
-
Environment:Windows7, PHP 5.3.3
Description
Before:
/** * @orm:Entity * @orm:Table(name="twitter_users") */ class TwitterUser implements UserInterface { const ROLE_DEFAULT = 'ROLE_TWITTER_USER'; /** * @orm:Id * @orm:GeneratedValue(strategy="AUTO") * @orm:Column(type="integer") */ private $id; /** * @orm:Column(type="integer", unique=true, nullable=false) */ private $twitterId; /** * @orm:Column(type="string", unique=true, nullable=false) */ private $displayName; }
After:
/** * @orm:Entity * @orm:Table(name="twitter_users") */ class TwitterUser implements UserInterface { const ROLE_DEFAULT = 'ROLE_TWITTER_USER'; /** * @orm:Id * @orm:GeneratedValue(strategy="AUTO") * @orm:Column(type="integer") */ private $id; /** * @orm:Column(type="integer", unique=true, nullable=false, name="twitter_id") */ private $twitterId; /** * @orm:Column(type="string", unique=true, nullable=false, name="display_name") */ private $displayName; /** * @orm:Column(type="datetime", name="last_logged_in_at", nullable=true) */ private $lastLoggedInAt; }
Bugs in the generated SQL:
- last_logged_in_at column is not added
- displayName is dropped, and at the same time the column name "displayName" is changed to "display_name"
- twitterId same as above
Fixed