Re: hasOne issues

2007-05-09 Thread uolax
DOH!!! It was the recursive valuessometime you just stare at something too long, you know? Thank you so much. Good karma your way. Cheers, Beau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" g

Re: hasOne issues

2007-05-09 Thread uolax
So the issue with the tables that reference each other and create massive array was solved by removing the hasMany from the 'instit' model and just using the belongsTo in the 'bopp' model. Is it okay to JUST have a 'belongsTo' relationship? --~--~-~--~~~---~--~~

Re: hasOne issues

2007-05-09 Thread John David Anderson (_psychic_)
I don't see anything wrong, unless you've set your recursive values high for your find calls. This setup is normal. Bopp belongsTo Instit and Instit hasOne Bopp That allows you get get data from the other model, no matter which you're using. Are you getting an error or some long queries or

Re: hasOne issues

2007-05-09 Thread uolax
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',

Re: hasOne issues

2007-05-09 Thread uolax
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

Re: hasOne issues

2007-05-09 Thread John David Anderson (_psychic_)
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

hasOne issues

2007-05-09 Thread uolax
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 I have 2 models instit.php - var $name = 'Instit'; var $belo