use iterator_count to check for schema files

Conflicts:

	Command/AbstractPropelCommand.php
This commit is contained in:
Toni Uebernickel 2011-11-25 17:32:35 +01:00
parent ec9ba0e26b
commit 1144197d11

View file

@ -197,7 +197,7 @@ abstract class AbstractPropelCommand extends ContainerAwareCommand
$finder = new Finder();
$schemas = $finder->files()->name('*schema.xml')->followLinks()->in($dir);
if (empty($schemas)) {
if (!iterator_count($schemas)) {
continue;
}