On 2/19/08, Nick Stinemates <[EMAIL PROTECTED]> 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

Reply via email to