mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2147: Custom annotation in MappedSuperclass #2700
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 (Nov 15, 2012).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user kluk:
When you try use custom annotation in mappedsuperclass like here http://pastebin.com/YMxKvcLk and then i try get metadata for class i get this error
Undefined index: fieldName
ClassMetadataInfo.php function addInheritedFieldMapping
Problem is that custom annotation doesnt have fieldName.
Quick fix is add condition to test if fieldName isset.
@doctrinebot commented on GitHub (Nov 15, 2012):
Comment created by kluk:
error log from orm:validate-schema
@doctrinebot commented on GitHub (Jan 23, 2013):
Comment created by @ocramius:
Copying from pastebin:
[~kluk] does this happen also with any other simple custom annotation? For example following:
@doctrinebot commented on GitHub (Jan 30, 2013):
Comment created by kluk:
the same error when using simple annotation.
When i remove $value , $picture from class everything goes ok.
Easy fix for me is change ClassMetadataInfo.
But i dont know if this fix can break another part of doctrine.
@doctrinebot commented on GitHub (May 4, 2013):
Comment created by @beberlei:
Can you put the code of your annotations online? I can't seem to understand why this happens.
@doctrinebot commented on GitHub (May 7, 2013):
Comment created by kluk: