Now both models are going in loops referencing themselves: bopp.php var $belongsTo = array('Instit' => array('className' => 'Instit') );
} instit.php var $hasOne = array('Bopp' => array('className' => 'Bopp', 'conditions' => '', 'order' => '', 'limit' => '1', 'foreignKey' => 'instit_id', 'dependent' => false, 'exclusive' => false, 'finderQuery' => '' ) ); Anythoughts? Thanks, Beau On May 9, 11:05 am, uolax <[EMAIL PROTECTED]> wrote: > Thanks John. > > I guess because I'm mainly working with the Bopp, i wanted other data > to belong to it. I guess it's just the way I'm thinking about models > and relations. > > Thanks again for making my day easier. > > On May 9, 11:01 am, "John David Anderson (_psychic_)" > > <[EMAIL PROTECTED]> wrote: > > On May 9, 2007, at 11:53 AM, uolax wrote: > > > > This is driving me crazy, I've tried every possible setup in the model > > > and tables and nothing seems to work. Please Please help. > > > > I have 2 tables, > > > > bopps > > > --------- > > > id > > > name > > > desc > > > instit_id > > > > instits > > > ----------- > > > id > > > name > > > Given this setup, Bopp belongs to Instit. > > > The setup you've outlined is backwards. > > > -- John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---