PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Managing Your Data With DatabaseObject

Article Comments (1 total)

Wicked Father, 2 August 2008
I've noticed that getSelectFields() will return the primary key twice after a record is loaded as it is always appended to the keys of the properties: getSelectFields(): Array ( [0] = username [1] = password [2] = first_name [3] = last_name [4] = email [5] = active [6] = unix_timestamp(ts_created) as ts_created [7] = user_id [8] = user_id ) I know it doesn't matter if you're just using within the class, but could cause problems if trying to use it to find the property list. Great articles, by the way.
Submit a Comment
Use the following form to submit a comment for this article. You can include any required code snippets, which we will format and highlight accordingly.


Note: Before your comment appears on PhpRiot, it must be manually approved. The email address field is optional. If you choose to include it, it will be displayed obfuscated to protect it from spammers.

In This Article


Additional Files