lib/Doctrine/ODM/MongoDB/Tools/Console/Command/GenerateHydratorsCommand.php 1 location
|
@@ 81-89 (lines=9) @@
|
78 |
|
$destPath = realpath($destPath); |
79 |
|
assert($destPath !== false); |
80 |
|
|
81 |
|
if (! file_exists($destPath)) { |
82 |
|
throw new InvalidArgumentException( |
83 |
|
sprintf("Hydrators destination directory '<info>%s</info>' does not exist.", $destPath) |
84 |
|
); |
85 |
|
} elseif (! is_writable($destPath)) { |
86 |
|
throw new InvalidArgumentException( |
87 |
|
sprintf("Hydrators destination directory '<info>%s</info>' does not have write permissions.", $destPath) |
88 |
|
); |
89 |
|
} |
90 |
|
|
91 |
|
if (count($metadatas)) { |
92 |
|
foreach ($metadatas as $metadata) { |
lib/Doctrine/ODM/MongoDB/Tools/Console/Command/GeneratePersistentCollectionsCommand.php 1 location
|
@@ 81-89 (lines=9) @@
|
78 |
|
$destPath = realpath($destPath); |
79 |
|
assert($destPath !== false); |
80 |
|
|
81 |
|
if (! file_exists($destPath)) { |
82 |
|
throw new InvalidArgumentException( |
83 |
|
sprintf("Persistent collections destination directory '<info>%s</info>' does not exist.", $destPath) |
84 |
|
); |
85 |
|
} elseif (! is_writable($destPath)) { |
86 |
|
throw new InvalidArgumentException( |
87 |
|
sprintf("Persistent collections destination directory '<info>%s</info>' does not have write permissions.", $destPath) |
88 |
|
); |
89 |
|
} |
90 |
|
|
91 |
|
if (count($metadatas)) { |
92 |
|
$generated = []; |
lib/Doctrine/ODM/MongoDB/Tools/Console/Command/GenerateProxiesCommand.php 1 location
|
@@ 83-91 (lines=9) @@
|
80 |
|
$destPath = realpath($destPath); |
81 |
|
assert($destPath !== false); |
82 |
|
|
83 |
|
if (! file_exists($destPath)) { |
84 |
|
throw new InvalidArgumentException( |
85 |
|
sprintf("Proxies destination directory '<info>%s</info>' does not exist.", $destPath) |
86 |
|
); |
87 |
|
} elseif (! is_writable($destPath)) { |
88 |
|
throw new InvalidArgumentException( |
89 |
|
sprintf("Proxies destination directory '<info>%s</info>' does not have write permissions.", $destPath) |
90 |
|
); |
91 |
|
} |
92 |
|
|
93 |
|
if (count($metadatas)) { |
94 |
|
foreach ($metadatas as $metadata) { |