Thank you!
Do you know the equivalent to return just one row instead of a whole rowset
?
JDempster wrote:
>
> All of the methods that are on a row class object.
> e.g.
> delete
> save
> findDependentRowset
> findManyToManyRowset
> findParentRow
> refresh
> etc...
>
> On Sun, Mar 23, 2008 at 10:31 AM, debussy007 <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi,
>>
>> What is the advantage of returning a rowsetClass instead of an array :
>>
>> function myFunction() {
>> return new $this->_rowsetClass(array(
>> 'table' => $this,
>> 'rowClass' => $this->_rowClass,
>> 'data' => $this->getAdapter()->query(
>> "select G.id_member from members G"
>> )->fetchAll(),
>> 'stored' => true
>> ));
>> }
>> (I wonder also what the field 'stored' is for)
>>
>> Insteaed of returning a simple array :
>>
>> function myFunction() {
>> return $this->getAdapter()->query(
>> "select G.id_member from members G"
>> )->fetchAll();
>> }
>>
>> Thank you for any clarification.
>> --
>> View this message in context:
>> http://www.nabble.com/Custom-functions-in-Zend_Db_Table_Abstract-tp16233923s16154p16233923.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Custom-functions-in-Zend_Db_Table_Abstract-tp16233923s16154p16237177.html
Sent from the Zend Framework mailing list archive at Nabble.com.