Author: Kris.Wallsmith
Date: 2010-09-13 19:41:16 +0200 (Mon, 13 Sep 2010)
New Revision: 30901
Modified:
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php
Log:
[1.3, 1.4] reverted remove of comments in Doctrine-generated table classes
(closes #8880)
Modified:
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php
===================================================================
---
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php
2010-09-13 17:31:37 UTC (rev 30900)
+++
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php
2010-09-13 17:41:16 UTC (rev 30901)
@@ -124,14 +124,6 @@
$baseDirFinder = sfFinder::type('dir')->name('base');
$this->getFilesystem()->replaceTokens($baseFinder->in($baseDirFinder->in($config['models_path'])),
'', '', $tokens);
- // cleanup new table classes
- $tableFinder =
sfFinder::type('file')->prune('base')->name('*Table'.$builderOptions['suffix']);
- foreach (array_diff($tableFinder->in($config['models_path']), $before) as
$file)
- {
- $contents = file_get_contents($file);
- file_put_contents($file, sfToolkit::stripComments($contents));
- }
-
$this->reloadAutoload();
}
}
Modified:
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php
===================================================================
---
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php
2010-09-13 17:31:37 UTC (rev 30900)
+++
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php
2010-09-13 17:41:16 UTC (rev 30901)
@@ -123,14 +123,6 @@
$baseDirFinder = sfFinder::type('dir')->name('base');
$this->getFilesystem()->replaceTokens($baseFinder->in($baseDirFinder->in($config['models_path'])),
'', '', $tokens);
- // cleanup new table classes
- $tableFinder =
sfFinder::type('file')->prune('base')->name('*Table'.$builderOptions['suffix']);
- foreach (array_diff($tableFinder->in($config['models_path']), $before) as
$file)
- {
- $contents = file_get_contents($file);
- file_put_contents($file, sfToolkit::stripComments($contents));
- }
-
$this->reloadAutoload();
}
}
--
You received this message because you are subscribed to the Google Groups
"symfony 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.com/group/symfony-svn?hl=en.