On Nov 11, 6:53 pm, validkeys <[EMAIL PROTECTED]> wrote:
> Hey Teknoid, I haven't used the polymorphic behavior before, but it
> looks like a similar approach to what I had posted, obviously better.
> I think my solution works well on a basic level but if you then wanted
> to see all the comments for a particular video (in this case) you
> would have to manually unbind and then rebind the comments model with
> new conditions.
>
> Am I right in assuming that?
Your suggestion and the way the polymorphic behavior works are
identical.
The only added value the polymorphic behavior has is that it'll find
you the Video|Post|etc. if you do a find directly on the comment (in
your example)
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---