I have a Entity
with composite keys. See below:
class BankAccount {
/**
* @ORM\Id
* @ORM\Column(type="integer")
*
*/
protected $bank;
/**
* @ORM\Id
* @ORM\ManyToOne(targetEntity="CompanyBundle\Entity\Company")
*/
protected $company;
...
}
because Doctrine has some issues with composite keys it won't generates sequences (I'm working in PostgreSQL), how do I deal with this in order to generate $bank
which is the PK?