Issue Type: Improvement Created: 2007-09-28T13:37:55.000+0000 Last Updated: 2008-11-13T14:10:01.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)
Reporter: Artur Jedlinski (nataniel) Assignee: Jurrien Stutterheim (norm2782) Tags: - Zend_Db_Table
Related issues: - ZF-1970
Attachments: - Zend_Db_Table_Row_Abstract.php.diff
I'd like to be able to use array access instead of object access sometimes:
<pre class="highlight">$row = $Users->findRow(1); echo $row['user']; // instead of echo $row->user;
Posted by Thomas Weidner (thomas) on 2007-09-28T14:30:40.000+0000
Assigned to Bill
Posted by Jordan Ryan Moore (jordanryanmoore) on 2007-12-17T13:05:07.000+0000
Attaching a patch that makes Zend_Db_Table_Row_Abstract implement ArrayAccess.
Posted by Wil Sinclair (wil) on 2008-03-25T20:43:55.000+0000
Please categorize/fix as needed.
Posted by Wil Sinclair (wil) on 2008-04-18T13:12:05.000+0000
This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.
Posted by Darby Felton (darby) on 2008-04-24T15:33:54.000+0000
Resolved as duplicate.
Posted by Jurrien Stutterheim (norm2782) on 2008-10-02T10:57:43.000+0000
Re-opening this issue... it's not a duplicate! This one's about Zend_Db_Table_Row, while the other is about Zend_Db_Table_Rowset
Posted by Jurrien Stutterheim (norm2782) on 2008-10-15T08:04:32.000+0000
Resolved in rev. 11970. Waiting for unit tests to be fixed before closing the issue.
Posted by Wil Sinclair (wil) on 2008-11-13T14:10:01.000+0000
Changing issues in preparation for the 1.7.0 release.
Have you found an issue?
See the Overview section for more details.