On 10/25/06, Jörg W Mittag <[EMAIL PROTECTED]> wrote:
>
> >>  - object-relational mapping of inheritance
> > I think CakePHP allows this through object chaining, which to
> > me is a very powerful yet underutilized concept.
>
> Can you elaborate on that?  I just googled for object chaining
> and only got a few results concerning fluent interfaces which is
> probably not what you meant.
>

By object chaining, I mean you can do something like this:

$foo = $this->foo->bar->baz->findAll();

It requires that your class methods return objects instead of arrays.
Rails does it as well, so maybe I'm calling it by the wrong name.
It's a design decision when you build you objects, for sure.  Me, I'm
a "let's return everything as associative arrays" type of guy.


-- 
Chris Hartjes

"The greatest inefficiencies come from solving problems you will never have."
-- Rasmus Lerdorf

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to