Req #20540 [Com]: Generator mandatory include when extending
| From: | stijnhau@gmail.com | Date: | Tue, 05 May 2015 12:27:05 +0000 |
| Subject: | Req #20540 [Com]: Generator mandatory include when extending | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-11267@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=20540&edit=1
ID: 20540
Comment by: stijnhau@gmail.com
Reported By: stijnhau at gmail dot com
Summary: Generator mandatory include when extending
Status: Feedback
Type: Feature/Change Request
Package: DB_DataObject
Operating System: Linux
Package Version: 1.11.4
PHP Version: 5.6.8
Roadmap Versions:
New Comment:
Didn't test it but looked at the change at it seems perfect.
When will there be a new version released (i know yealry release has
just happend but if "Bug #20543 Php deprecated warning" get's fixed it
has improved a lot(for me/us)
Previous Comments:
------------------------------------------------------------------------
[2015-05-05 12:49:42] alan_k
Can you try the latest version from SVN -
it should handle
extends_location =
(eg. blank) to prevent generation of the require line.
------------------------------------------------------------------------
[2015-05-05 12:23:36] stijnhau
Patch file has been created and added
------------------------------------------------------------------------
[2015-05-05 12:23:12] stijnhau
Added #patch
bug:20540;patch:Fix_possible_empty_include;revision:1430824992;.
------------------------------------------------------------------------
[2015-05-05 05:35:29] alan_k
-Status: Open
+Status: Feedback
Can you suggest a patch.
Regards
Alan
------------------------------------------------------------------------
[2015-05-04 15:12:55] stijnhau
Description:
------------
When we have our custom dataobjects extens the dbdataobject.
The inlcude is set in every DO.
But we have an autoload that can handle this.
We would like that is we pass
$this->databaseDetails['DataObjectConfig']['extends'] =
"PssgDataObject";
$this->databaseDetails['DataObjectConfig']['extends_location'] =
"'.LIB_DIR.'class/PssgDataObject.php";
The extens_location as null or false that the include isn't added to the
DO
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=20540&edit=1