Welcome Guest, Not a member yet? Register   Sign In
Insert or Update in Save() method of Datamapper
#9

[eluser]alaminx[/eluser]
Code:
CREATE TABLE IF NOT EXISTS `cities` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `position` int(11) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_cities_countries1` (`country_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=16 ;

CREATE TABLE IF NOT EXISTS `countries` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `position` int(11) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;


Messages In This Thread
Insert or Update in Save() method of Datamapper - by El Forum - 10-14-2010, 09:04 AM
Insert or Update in Save() method of Datamapper - by El Forum - 10-14-2010, 10:29 AM
Insert or Update in Save() method of Datamapper - by El Forum - 10-14-2010, 10:42 AM
Insert or Update in Save() method of Datamapper - by El Forum - 10-14-2010, 11:20 AM
Insert or Update in Save() method of Datamapper - by El Forum - 10-14-2010, 12:06 PM
Insert or Update in Save() method of Datamapper - by El Forum - 10-14-2010, 12:11 PM
Insert or Update in Save() method of Datamapper - by El Forum - 10-14-2010, 12:28 PM
Insert or Update in Save() method of Datamapper - by El Forum - 10-14-2010, 12:36 PM
Insert or Update in Save() method of Datamapper - by El Forum - 10-14-2010, 12:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB