Tabela wygląda tak:
CREATE TABLE IF NOT EXISTS `player_items` ( `player_id` int(11) NOT NULL DEFAULT '0', `pid` int(11) NOT NULL DEFAULT '0', `sid` int(11) NOT NULL DEFAULT '0', `itemtype` int(11) NOT NULL DEFAULT '0', `count` int(11) NOT NULL DEFAULT '0', `attributes` blob NOT NULL, UNIQUE KEY `player_id_2` (`player_id`,`sid`), KEY `player_id` (`player_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
Próbowałem tak:
/** * @Id * @Column(unique=true) * @Column(type="integer") * @Column(name="player_id_2") */ private $player_id_2;
No, ale jak widać bezskutecznie, ktoś wie jak to ma wyglądać?