Managing Your Data With DatabaseObject
Article Comments (1 total)
Wicked Father, 1 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.




