Thank you for looking after this noobie. Shawn
On Aug 8, 12:58 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > class SarosSarg extends AppModel > > On 8/8/07, starkey <[EMAIL PROTECTED]> wrote: > > > > > > > Hello all! > > > I'm stumped, can anyone take a moment and help me figure out why I'm > > getting these errors? > > > Warning: overload() was unable to locate class 'sarossarg' in \cake > > \cake\basics.php on line 233 > > > Fatal error: Cannot instantiate non-existent class: sarossarg in \cake > > \cake\libs\model\model_php4.php on line 452 > > > Basically, my tables look like this (where >- and -< mean one-to-many) > > > sargs -< sargs_saros >- saros > > > Here are my models for the three tables: > > > class Saros_Sarg extends AppModel > > { > > var $name = 'SarosSarg'; > > > var $validate = array( > > 'saro_id' => VALID_NOT_EMPTY, > > 'sarg_id' => VALID_NOT_EMPTY > > ); > > > var $belongsTo = array('Saro', 'Sarg'); > > } > > > class Saro extends AppModel > > { > > var $name = 'Saro'; > > > var $displayField = 'name'; > > > var $validate = array( > > 'name' => VALID_NOT_EMPTY > > ); > > > var $hasMany = array('SarosSarg'); > > } > > > class Sarg extends AppModel > > { > > var $name = 'Sarg'; > > > var $validate = array( > > 'name' => VALID_NOT_EMPTY > > ); > > > var $hasMany = array('SarosSarg'); > > } > > > Here is the join table definition: > > CREATE TABLE `saros_sargs` ( > > `id` int(11) NOT NULL auto_increment, > > `saro_id` int(11) NOT NULL default '0', > > `sarg_id` int(11) NOT NULL default '0', > > `status` char(1) NOT NULL default 'A', > > `created` datetime NOT NULL default '0000-00-00 00:00:00', > > `modified` datetime default NULL, > > PRIMARY KEY (`id`) > > ) > > > My controllers are just vanilla right now; all they do is give the > > name and define $scaffold. > > > Thanks for any help you can give! > > Shawn > > -- > (the old fart) the advice is free, the lack of crankiness will cost you > > - its a fine line between a real question and an idiot > > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---