#1064: generateFiles option to Doctrine_Record_Generator does not regenerate
existing files
--------------------------+-------------------------------------------------
Reporter: Jon.Collins | Owner: romanb
Type: defect | Status: reopened
Priority: minor | Milestone: 1.0.1
Component: Record | Version: 0.11
Resolution: | Keywords:
Has_test: 0 | Mystatus: Pending Core Response
Has_patch: 0 |
--------------------------+-------------------------------------------------
Changes (by ggoodman):
* status: closed => reopened
* has_test: => 0
* mystatus: => Pending Core Response
* milestone: => 1.0.1
* has_patch: => 0
* resolution: fixed =>
Comment:
There is a slight bug in this that prevents integration with spl_autoload.
Lines 161-163 of Doctrine/Record/Generator.php should read:
{{{
if ($this->_options['generateFiles'] === false &&
class_exists($this->_options['className'], false)) {
return false;
}
}}}
The fix is to prevent class_exists from triggering an autoload call by
passing 'false' as the 2nd parameter.
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1064#comment:3>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---