Re: [fw-general] Rowsets and empty()

2009-10-29 Thread prodigitalson
Hector Virgen wrote: Calling empty() on a rowset (Zend_Db_Table_Rowset) always returns false, even if the rowset has zero rows. Is there a way to make rowsets (or any iterator) work with empty()? Or is !count($rowset) the only way to test for an empty rowset? You need to use count() or

Re: [fw-general] Rowsets and empty()

2009-10-29 Thread Hector Virgen
Thanks for the reply. It seems like using count() is the only way to test for empty rowsets. The question is more about iterators in general, since they can (almost) be drop-in replacements for arrays. I'm OK with using count(). I was just curious if it's possible to make an object work with