lib/Doctrine/Migrations/Tools/Console/Command/DiffCommand.php 1 location
|
@@ 121-125 (lines=5) @@
|
118 |
|
$configuration = $this->getDependencyFactory()->getConfiguration(); |
119 |
|
|
120 |
|
$dirs = $configuration->getMigrationDirectories(); |
121 |
|
if ($namespace === null) { |
122 |
|
$namespace = key($dirs); |
123 |
|
} elseif (! isset($dirs[$namespace])) { |
124 |
|
throw new OutOfBoundsException(sprintf('Path not defined for the namespace %s', $namespace)); |
125 |
|
} |
126 |
|
|
127 |
|
assert(is_string($namespace)); |
128 |
|
|
lib/Doctrine/Migrations/Tools/Console/Command/GenerateCommand.php 1 location
|
@@ 58-62 (lines=5) @@
|
55 |
|
} |
56 |
|
|
57 |
|
$dirs = $configuration->getMigrationDirectories(); |
58 |
|
if ($namespace === null) { |
59 |
|
$namespace = key($dirs); |
60 |
|
} elseif (! isset($dirs[$namespace])) { |
61 |
|
throw new Exception(sprintf('Path not defined for the namespace %s', $namespace)); |
62 |
|
} |
63 |
|
|
64 |
|
assert(is_string($namespace)); |
65 |
|
|