use iterator_count to check for schema files
Conflicts: Command/AbstractPropelCommand.php
This commit is contained in:
parent
ec9ba0e26b
commit
1144197d11
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue