mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-432: @JoinTable and @JoinColumn annotation name attributes miss joined entity name first char #539
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 (Mar 16, 2010).
Originally assigned to: @jwage on GitHub.
Jira issue originally created by user floch:
When generating php classes from YAML (via orm:convert-mapping cli tool) with maping default, the name of the joined table is incorrect.
yaml:
produced php classes; note @JoinTable(name="User_mail" and @JoinColumn(name="mail_id"; The E of Email is missing :
@doctrinebot commented on GitHub (Mar 17, 2010):
Comment created by @jwage:
Is your YAML schema correct? It looks wrong. You reference a target Entity of Email but it is Entities\Email. You also specify a key named "roles" but don't specify anything under it. When I try and convert your schema I get the error:
@doctrinebot commented on GitHub (Mar 17, 2010):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Mar 17, 2010):
Comment created by floch:
The 'roles' key shouldn't be here, i've copied my YAML and deleted most part so we could focus on what i was noticing; I forgot to take out this line.
Regarding the target entity, i don't know why but i was expecting that the name of the entity should be passed without its namespace, I guess i was wrong. Thanks for highlighting that point.
@doctrinebot commented on GitHub (Mar 18, 2010):
Comment created by floch:
I actually used default YAML files provided in the sandbox to create mine.
In those files, entities are named after Entities<entity_name> but the relationship refers to <entity_name> only (w/o 'Entities').
In that case, regarding your comment about entities references, I presume that sandbox YAML schema is not correct either. Can you confirm that point?
Thanks!