Re: Help with a $hasMany, $belongsTo association...

2007-02-13 Thread alexxwiz
ems like a error in my php version. I use php 5.2.0.0. Will try to download more recent and test with it. On 13 фев, 23:09, "alexxwiz" <[EMAIL PROTECTED]> wrote: > I'm glad for you, but my problem is still here :( > Can someone point me where is my mistake? >

Re: Help with a $hasMany, $belongsTo association...

2007-02-13 Thread alexxwiz
I'm glad for you, but my problem is still here :( Can someone point me where is my mistake? On 13 фев, 18:00, "shoesole" <[EMAIL PROTECTED]> wrote: > Wow. I knew it had to be something easy that I was completely > overlooking. Thank you so much Eric. I read the manual chapter on > models multiple

Re: Help with a $hasMany, $belongsTo association...

2007-02-13 Thread alexxwiz
is->Maincat->recursive = 1; print_r($this->Maincat->findAll()); Result is same as before. Any suggestions? On 13 фев, 16:42, "Seb" <[EMAIL PROTECTED]> wrote: > @alexxwiz : try adding this to your Category model; > var $belongsTo = array ('Maincat'); > >

Re: Help with a $hasMany, $belongsTo association...

2007-02-13 Thread alexxwiz
I have same problem. Two tables: CREATE TABLE `maincats` ( `id` int(10) unsigned NOT NULL auto_increment, `title` varchar(255) default NULL, `visible` tinyint(4) NOT NULL default '1', `created` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM; CREATE TABLE `categories` ( `id` i