php - Doctrine - Comma separated values in field -


i'm trying implement doctrine on top of legacy mysql database. wokrs kind 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 like...

create table `tx_tendsical_category` (   ...  `title` varchar(255) not null default '',   ... ) 

now... category ids stored comma (,) separated values in events.category field. how can setup relations without hassle... need hasmany etc...

if having problems database schema, write own hydrators. when you'll have data fetched, parse , return proper object collections.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -