我试图在历史遗留的MySql数据库上执行理论。 如今,这名女巫非常好。 但......
页: 1
CREATE TABLE `events` (
`uid` int(11) NOT NULL AUTO_INCREMENT,
-- skipped ---
`title` varchar(255) NOT NULL DEFAULT ,
`category` text,
)...
表格Categories, whitch有类别。 结构类似......
CREATE TABLE `tx_tendsical_category` (
...
`title` varchar(255) NOT NULL DEFAULT ,
...
)
Now... Category IDS are stored as comma (,) separated values in events.category field. How can i setup relations without much hassle... I need hasMany etc...