I can't think of a reason this would stop working, I didn't change much
in any Zend_Db_Table classes yet.  I now have unit tests that employ
similar usage of a Zend_Table_Row object.  

You don't describe what happens that is wrong, that makes you need to
use the second code form below.  Does it give an error?  Does it just
give wrong results?

Regards,
Bill Karwin

> -----Original Message-----
> From: Troy L. Marker [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 18, 2007 4:38 PM
> To: [email protected]
> Subject: [fw-general] Has something changed with Zend_Table_Row in
0.8?
> 
> I am in the process of update a project to work with 0.8. (I have not
> update
> the code in serveral version)
> 
> Prior to version 0. the following worked:
> 
>     public function isValid($value)
>     {
>         $table = new Default_Model_Db_Tables_Members();
>         $where = $this->_db->quoteInto('u_membersUsername = ?',
$value);
>         $row = $table->fetchRow($where);
>         if ($row->u_membersUsername =='') {
>             $this->_messages = array();
>             return true;
>         } else {
>             $this->_messages[] = "That username is taken.";
>             return false;
>         }
> 
>     }
> 
> Now I need to do the following:
> 
>     public function isValid($value)
>     {
>         $table = new Default_Model_Db_Tables_Members();
>         $where = $this->_db->quoteInto('u_membersUsername = ?',
$value);
>         $row = $table->fetchRow($where);
>         $data = $row->toArray();
>         if ($data['u_membersUsername'] == '') {
>             $this->_messages = array();
>             return true;
>         } else {
>             $this->_messages[] = "That username is taken.";
>             return false;
>         }
> 
>     }
> 
> I was wonder if something changed in the latest version, or am I not
> seeing
> something I am doing wrong.
> 
> Any help would be greatly appreciated.
> 
> Regards,
> Troy L. Marker
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.17.38/684 - Release Date:
2/13/2007
> 5:10 PM

Reply via email to