Re: PolymorphicBehavior Questions

2008-09-11 Thread Mark
Okay, so... I have Articles which belongTo Users, and Users are Workers or Employers (via Polymorphic). Now I have a query: return $this->Article->find('all', array('order' => 'Article.created DESC', 'limit' => 5)); But it doesn't seem to be pulling up the associated Worker or Employer... am I d

Re: PolymorphicBehavior Questions

2008-09-10 Thread Mark
Oops, that's what I meant to say (apps/models/behaviors). And yes, I'm using 1.2. Thanks again Mark (IRC?), for the tip :) Mark On Sep 10, 9:44 am, mark_story <[EMAIL PROTECTED]> wrote: > Scaffolding will not use any behaviors.  It uses table schema's to > generate the forms. You would need to b

Re: PolymorphicBehavior Questions

2008-09-10 Thread mark_story
Scaffolding will not use any behaviors. It uses table schema's to generate the forms. You would need to bake and edit the files manually. Behaviors go in app/model/behaviors And you need to be using 1.2 for behaviors to work at all. -Mark On Sep 10, 3:23 am, Mark <[EMAIL PROTECTED]> wrote: >

PolymorphicBehavior Questions

2008-09-10 Thread Mark
It doesn't seem to want to let me post comments in the bakery, so..posting this here instead. --- QUESTIONS: Anyway, two questions. One, is this supposed to work in scaffolding? I have "Users", which are broken into "Employers" and "Workers". When I view a user, it doesn't pull up any of the rela