From:  pear-qa@lists.php.net ("stijnhau@gmail.com")
Date:  05 May 2015 20:27:05 Hong Kong Time
Newsgroup:  news.php.net/php.pear.bugs
Subject:  

[PEAR-BUG] Req #20540 [Com]: Generator mandatory include when extending

NNTP-Posting-Host:  null

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