hi, i am traing to insert data with a one to one relationship, i am working with this tables: CREATE TABLE 'people` ( `id` smallint(5) unsigned NOT NULL auto_increment, `lastname` varchar(40) NOT NULL, `firstname` varchar(40) NOT NULL, PRIMARY KEY (`id`) )
CREATE TABLE `judges` ( `person_id` smallint(5) unsigned NOT NULL, `location_id` smallint(5) unsigned NOT NULL, `flavor` enum('USDJ','USMJ') default 'USDJ' ) in the people controller: var $hasOne = array('judge' => array('className' => 'judge', 'conditions' => '', 'order' => '', 'dependent' => true, 'foreignKey' => 'person_id' ) ); but i don't know how to insert data in both tables at the same time, how do i configure the add method??? (i can list both tables) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---