Re: More than one values returned?

From: Date: Fri, 22 Feb 2008 02:43:17 +0000
Subject: Re: More than one values returned?
References: 1 2 3 4 5 6 7 8 9  Groups: php.general 
Request: Send a blank email to php-general+get-269825@lists.php.net to get a copy of this message
Greg Donald wrote: > 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. > > > I'm glad you're literate enough to understand what *indication* and *usually* mean. Oh wait.. -- ================== Nick Stinemates (nick@stinemates.org) http://nick.stinemates.org AIM: Nick Stinemates MSN: nickstinemates@hotmail.com Yahoo: nickstinemates@yahoo.com ==================

« previous php.general (#269825) next »