Home » Database » DB_DataObject_FormBuilder » Bug #4274
Problem with relationships in FormBuilder
Details
| Submitted | 2005-05-03 21:23 UTC |
|---|---|
| From | adriano at ison dot com dot br |
| Assigned | justinpatrin |
| Status | No Feedback |
| Package | DB_DataObject_FormBuilder |
| PHP Version | 4.3.3 |
| Roadmaps | (Not assigned) |
Comments
[2005-05-03 21:23 UTC] adriano at ison dot com dot br
Description:
------------
The FormBuilder is not considering the relationships of the DataObjects that are extendided of DB_DataObject class, as it suggests the manual of DB_DataObject(http://pear.php.net/manual/en/package.database.db-dataobject.intro-configuration.php), in the option "extends".
Reproduce code:
---------------
//My DataObjects is thus:
class DataObjects_People extends My_DB_DataObject
{
//...
class DataObjects_Telephones extends My_DB_DataObject
{
//...
// Using of this form, the FormBuilder does not create selects (or radios) necessary, in accordance with is links specified in my db.links.ini. If I to extend only of the DB_DataObject, the relationships start to function...
[2005-05-03 21:29 UTC] adriano at ison dot com dot br
I changed the package of bug; I had placed made a mistake.
[2005-05-05 04:29 UTC] adriano at ison dot com dot br
The configuration of links functions correctly, but the FB does not make the SELECTs (or RADIOs) in the corresponding fields. A strange thing that discovered later, is that this resource started to function when I started to use a my driver, extended of the DB_DataObject_FormBuilder_QuickForm, as suggested in http://opensource.21st.de/25.html#A2. Still I did not discover accurately the cause...
[2005-05-05 04:34 UTC] adriano at ison dot com dot br
Yes, all of my DB_DataObjects is from My_DB_DataObject, and __table is set correctly...