Re: More than one values returned?

From: Date: Thu, 21 Feb 2008 23:35:13 +0000
Subject: Re: More than one values returned?
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-269816@lists.php.net to get a copy of this message
On 2/19/08, Nick Stinemates <nick@stinemates.org> 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/

« previous php.general (#269816) next »