Skip to content

Loading…

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

Closed
doctrinebot opened this Issue · 2 comments

2 participants

@doctrinebot

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.

@doctrinebot

Comment created by @beberlei:

Fixed in 2.4

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.4 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.