Re: More than one values returned?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg Donald wrote:
> On 2/19/08, Nick Stinemates <nick@xxxxxxxxxxxxxx> wrote:
>   
>>  I said, simply, returning an array of objects was usually an indication
>>  of poor design.
>>     
>
> No it's not.  Nearly every MVC framework in existence implements some
> sort of ActiveRecord finder that does exactly that.
>
> Rails:
> @foo = Foo.find( :all )
>
> Django:
> foo = Foo.objects.all()
>
> ZF:
> $foo = new Foo();
> $foo->fetchRow( $foo->select() );
>
> All return arrays of objects.
>
>
>   
I'm glad you're literate enough to understand what *indication* and
*usually* mean.

Oh wait..

-- 
==================
Nick Stinemates (nick@xxxxxxxxxxxxxx)
http://nick.stinemates.org

AIM: Nick Stinemates
MSN: nickstinemates@xxxxxxxxxxx
Yahoo: nickstinemates@xxxxxxxxx
==================

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux