DDC-2136: convert-mapping can't create YML from Annotation when Id column is a OneToOne relationship #2824

doctrinebot opened this Issue Nov 11, 2012 · 2 comments

2 participants


Jira issue originally created by user gergelypolonkai:

I have two entities


  • @ORM\Entity / class User { /***
    • @ORM\Id
    • @ORM\GeneratedValue(strategy="AUTO")
    • @ORM\Column(type="integer") */ private $id }


  • @ORM\Entity / class UserData { /***
    • @ORM\Id
    • @ORM\OneToOne(targetEntity="User") */ private $id }

When I convert these with symfony's

doctrine:mapping:convert yml test/

it generates an entity definition for UserData without any id fields, which, of course, cannot be imported to the database, as the new entity doesn't have an identifier column.


Comment created by @beberlei:

Fixed in 2.4


Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.4 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment