Re: More than one values returned?

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

 



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.


-- 
Greg Donald
http://destiney.com/

-- 
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