Home » Database » DB_DataObject » Bug #5247
User editable primary keys
Details
| Request #5247 | User editable primary keys |
|---|---|
| Submitted | 2005-08-30 20:33 UTC |
| From | apacheco at nip dot gub dot uy |
| Status | Feedback |
| Package | DB_DataObject |
| PHP Version | 4.3.10 |
| OS | Irrelevant |
| 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.