Skip to content

Loading…

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

Closed
doctrinebot opened this Issue · 2 comments

2 participants

@doctrinebot

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.

@doctrinebot

Comment created by johannes:

Fixed in D 2.1

@doctrinebot

Issue was closed with resolution "Invalid"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.1 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.