I have a table already created in my database with 2 keys, one a PRI key, the other a MUL key. How do I tell Doctrine to mark the column with the MUL key as a key? If I understand correctly, @ID won't work because it's not a primary key, and @Index won't work because the table is already created.
The code currently looks like this:
/**
* @ORM\Entity
* @ORM\Table(name="mytablename")
**/
class MyTablename implements IMyTablename
{
/**
* @ORM\Id
* @ORM\Column(type="string", name="id", length=40)
*/
protected $id;
/**
* @ORM\Column(type="string", name="ccode", length=5)
*/
protected $ccode;
...
}
And I want to mark ccode as a key.