Re: self-recursive models

2008-11-18 Thread grigri
What do you get if you set recursive to 3? On Nov 18, 7:53 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, thanks for the reply =) don't see how that matters, but sure ?php class Person extends AppModel {         var $name = 'Person';         var $hasAndBelongsToMany =

Re: self-recursive models

2008-11-18 Thread [EMAIL PROTECTED]
I just get the same, as there are no more models associated =( On Nov 18, 10:00 am, grigri [EMAIL PROTECTED] wrote: What do you get if you set recursive to 3? On Nov 18, 7:53 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, thanks for the reply =) don't see how that matters, but sure

self-recursive models

2008-11-17 Thread [EMAIL PROTECTED]
Hello I wonder if anyone can help me with a specific database design. I have a database with pictures of people. A person may be on different pictures, and a picture may have many people on it (so its a HasAndBelongsTo relation with 3 tables...) My problem is that, on a view of a person, I want

Re: self-recursive models

2008-11-17 Thread the_woodsman
You should look into/post your model relationships, there are some relevant things in there... On Nov 17, 3:41 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello I wonder if anyone can help me with a specific database design. I have a database with pictures of people. A person may be on

Re: self-recursive models

2008-11-17 Thread [EMAIL PROTECTED]
Hi, thanks for the reply =) don't see how that matters, but sure ?php class Person extends AppModel { var $name = 'Person'; var $hasAndBelongsToMany = array('Picture'); } ? ?php class Picture extends AppModel { var $name = 'Picture'; var $hasAndBelongsToMany =