Details
Description
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.