Skip to content

DDC-1222: Composite Primary Key is not recognized #1830

doctrinebot opened this Issue Jun 21, 2011 · 2 comments

2 participants


Jira issue originally created by user johannes:

I have the following mapping:

class TopicTranslation
* @ORM\Id
* @ORM\ManyToOne(targetEntity="Topic")
    private $topic;

* @ORM\Id
* @ORM\Column(type="string", length=5)
    private $locale;

Doctrine will only use "locale" as primary key for the table. I would expect it to use "topic_id" and "locale" instead.


Comment created by johannes:

Fixed in D 2.1


Issue was closed with resolution "Invalid"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.1 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
Something went wrong with that request. Please try again.