Merge branch 'fix-acl-schema-generator' of https://github.com/lewinski/symfony into lewinski-fix-acl-schema-generator

This commit is contained in:
Johannes Schmitt 2011-03-05 13:54:10 +01:00
commit 0eb4f49061

View File

@ -27,7 +27,7 @@ $schema = new Schema(array(
$reflection = new ReflectionClass('Doctrine\\DBAL\\Platforms\\AbstractPlatform'); $reflection = new ReflectionClass('Doctrine\\DBAL\\Platforms\\AbstractPlatform');
$finder = new Finder(); $finder = new Finder();
$finder->name('*.php')->in(dirname($reflection->getFileName())); $finder->name('*Platform.php')->in(dirname($reflection->getFileName()));
foreach ($finder as $file) { foreach ($finder as $file) {
require_once $file->getPathName(); require_once $file->getPathName();
$className = 'Doctrine\\DBAL\\Platforms\\' . $file->getBasename('.php'); $className = 'Doctrine\\DBAL\\Platforms\\' . $file->getBasename('.php');