Hi, I love Flourish but Im having so many problems with !InnoDb and the ORM. I haven been using MyISAM for a while.
A very simple example
CREATE TABLE IF NOT EXISTS `countries` (
`country_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
PRIMARY KEY (`country_id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`country_id` int(11) NOT NULL,
PRIMARY KEY (`user_id`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
I already read the docs but I dont know how to get the name of the country in my user object
Can anyone show me?