mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3314: Error with AttributeOverride when upgrading schema #4096
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Sep 19, 2014).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user Jaybe:
I want to override an attribute from FOSuserBundle:User class with annotations.
My class extends BaseUser
My use statement is like this
When I put the annotations on my entity
I get this error message :
{color:red}
MappingException: Invalid field override named 'emailCanonical' for class SiteCustomer.
{color}
I got the same error message, for usernameCanonical.
I need to override this field in order to remove the uniqness of the field
I use Doctrine v2.4.4 what is wrong with my annotation ? Why do I get this error when trying to upgrade my schema
Thank you
@doctrinebot commented on GitHub (Sep 22, 2014):
Comment created by @ocramius:
Did you try reaching where the exception is thrown? It typically says more about the specific failure.
@doctrinebot commented on GitHub (Sep 23, 2014):
Comment created by Jaybe:
Here is the stack trace of my error.
If this is not what you need, tell me what do you want and how to get it.
Thank you.