Hi (:

I'm currently trying to make a REST-API in Shopware work which has a 
composite primary key:

    /**
     * @ORM\Id
     * @ORM\Column(name="c_group", type="string")
     */
    private $cGroup;

    /**
     * @ORM\Id
     * @ORM\Column(name="manufacturer", type="string")
     */
    private $manufacturer;

    /**
     * @ORM\Id
     * @ORM\Column(name="a_group", type="string")
     */
    private $aGroup;


Unfortunately, if I try to perform a GET, I get the error:
"Error message: Single id is not allowed on composite primary key in entity 
PluginName\\Models\\ClassName"

I've already contacted the Shopware Developer Support and they told me that 
this is a bug in Doctrine. Is this true?

I'm grateful for any help!

Best,
Conny

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to