Home » Database » DB_DataObject » Bug #9794
setting options under DB_DataObject_Generator in ini doesn't work
Details
| Submitted | 2007-01-10 12:54 UTC |
|---|---|
| From | sorry dot i dot dont dot like dot spam at my dot box dot co |
| Status | No Feedback |
| Package | DB_DataObject |
| PHP Version | 4.4.2 |
| OS | win xp |
| Roadmaps | (Not assigned) |
Comments
[2007-01-10 12:54 UTC] sorry dot i dot dont dot like dot spam at my dot box dot co
Description:
------------
Setting an option for DB DataObject Generator in an ini doesn't actually affect the Generator.
With the following in a dataObject.ini:
[DB_DataObject_Generator]
extends_location = DB/DataObject.php
extends = DB_DataObjectOn
generator_add_defaults = 1
generator_add_defaults is ignored because Generator only loads options for DataObject. Moving generator_add_defaults so it is underneath [DB_DataObject] gives expected results.
Since the generator_add_defaults is unique to Generator and not DataObject, it should be configurable from within the [DB_DataObject_Generator] of an ini file.
Basically, I'm asking that DB_DataObject_Generator be able to use it's own set of options, it's confusing having them comingled. Apparently the developers of the FormBuilder project were confused by this too, as they put some options under [DB_DataObject_Generator] in their dataObject.ini in the examples folder.
At least it should be documented under Generator that all of its settings should be done under [DB_DataObject].
Not a major problem, but fixing or documenting this would probably help clear things up.
System specifics:
PHP 4.4.2 (cgi-fcgi) (built: Jan 13 2006 13:53:43)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with DBG v2.13.1, (C) 2000,2006, by Dmitri Dmitrienko
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE VERSION STATE
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.1 stable
DB 1.7.7 stable
DB_DataObject 1.8.5 stable
DB_DataObject_FormBuilder 1.0.0RC6 beta
Date 1.4.7 stable
HTML_Common 1.2.3 stable
HTML_QuickForm 3.2.7 stable
HTML_Table 1.7.5 stable
MDB2 2.3.0 stable
Mail 1.1.14 stable
Net_SMTP 1.2.8 stable
Net_Socket 1.0.6 stable
PEAR 1.4.11 stable
XML_Parser 1.2.8 stable
XML_RPC 1.5.1 stable
MySQL Version: '4.1.18-nt-max'