I'm trying to implement Doctrine on top of legacy MySql database. For now it wokrs kind a great. But...
I have Events table whitch has following structure:
CREATE TABLE `events` (
`uid` int(11) NOT NULL AUTO_INCREMENT,
-- skipped ---
`title` varchar(255) NOT NULL DEFAULT '',
`category` text,
)...
And table Categories, whitch has categories. Structure is like...
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...