Re: Cascading Models in "hasone"

2010-10-06 Thread Jeremy Burns | Class Outfit
The default behaviour is called 'recursion', where the find will look for models directly related to the model you are doing the find on. This is usually one level, but by setting var $recursive = n; you'll go to n levels instead. So in theory setting var $recursive = 2; will solve your issue, b

Cascading Models in "hasone"

2010-10-06 Thread Rob
Hello Everyone, I'm a new user of CakePHP, and have a project where we need to reflect a 3-step hierarchy of inheritance in our database in a model. We have people, adults, and users. All users are adults, and people, and all adults are people. Ideally our Adults model "hasone" person, and our