On Dec 19, 8:59 am, brian <[email protected]> wrote:
> ... minutes later, the clue train pulls in. I can write a behavior to
> modify the conditions. But, I've got both Polymorphic & Containable in
> the mix -- how can I figure out which comes first? Or change their
> order, if necessary. Is their $actAs entry the determining factor?
>
> Is that a dumb question? Sorry, I've been goofing off with jQuery for
> the past couple of weeks.
>
> BTW, I did have a look at ExtendableBehavior [1], which looks great
> for some stuff but with this, I really need to keep separate tables
> for the user types. The site's moving to mysql from pg (sadly) where
> these tables use inheritance from a users table. I'd had a go a while
> back at inheriting Cake models but the framework was a bit
> overwhelming and it was abandoned. I see, now that I can a write a
> behavior for each user type to extend User. Or, would I be better off
> with a UserBehavior that acts on the modelname?
>
> [1]http://bakery.cakephp.org/articles/view/extendablebehavior
Show your db schema for users and at least 2 types. it's probable
there is a much simpler solution to what you're trying to do ;)
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
-~----------~----~----~----~------~----~------~--~---