PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject » Bug #5247

User editable primary keys

Details

Request #5247User editable primary keys
Submitted2005-08-30 20:33 UTC
Fromapacheco at nip dot gub dot uy
StatusFeedback
PackageDB_DataObject
PHP Version4.3.10
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2005-08-30 20:33 UTC] apacheco at nip dot gub dot uy

Description:
------------
I have spent a whole day trying to manage a table with formbuilder that has a numeric primary key who the user can edit, and is not secuencial.
I'm doing now some hacking with the virtual fields, but i think my poor dataobject class will be unusable for other people.
I'm crazy? or there is no way to manage that.
very thank you.
AnĂ­bal.-

[2005-08-31 15:31 UTC] apacheco at nip dot gub dot uy

Thank you for your fast reply. Override sequenceKey and return the array of falses doesn't work, the dataobject still thinks that a new record corresponds to an update, and the editios of an existing one not works when the primary key have changed (it uses the new one in the WHERE clause). I think i have to write more code in the overriden method and not just return the array of falses. Of course I didn't think this is a bug this is why I have submitted as a feature request althought I'm not sure about that. Sorry for my english.