perfect. Thanks for the responses guys!

On May 1, 9:35 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> This may be of 
> help:http://bakery.cakephp.org/articles/view/polymorphic-behavior
>
> On Thu, May 1, 2008 at 10:28 PM, patcoll <[EMAIL PROTECTED]> wrote:
>
> >  fwiw, that's what Cake ACL does as well to reference different models
> >  in one table
>
> >  'model' -- references the cake model
> >  'foreign_key' -- references the unique id to that model's table.
>
> >  On May 1, 9:01 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> >  > That's the way I do it, and have had no problems.  It is quite trivial
> >  > to set up conditions on your associations, so that the associated rows
> >  > are loaded automatically.
>
> >  > On May 2, 9:52 am, validkeys <[EMAIL PROTECTED]> wrote:
>
> >  > > Quick question..
>
> >  > > I have a conversation going on between users and managers. users and
> >  > > managers are 2 seperate tables but the conversation posts are held in
> >  > > one table. When i reference the post i reference it by id and then
> >  > > have a field called model. The model field would hold either the word
> >  > > Manager or User depending on whether or not it was a user or manager
> >  > > that posted to the conversation. I was wondering if anyone had a
> >  > > better way to do this.
>
> >  > > Feel free to shoot me down and make me feel small.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to