lib/Doctrine/ODM/MongoDB/Tools/Console/Command/GenerateHydratorsCommand.php 1 location
|
@@ 85-99 (lines=15) @@
|
| 82 |
|
); |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
if (count($metadatas)) { |
| 86 |
|
foreach ($metadatas as $metadata) { |
| 87 |
|
$output->write( |
| 88 |
|
sprintf('Processing document "<info>%s</info>"', $metadata->name) . PHP_EOL |
| 89 |
|
); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
// Generating Hydrators |
| 93 |
|
$dm->getHydratorFactory()->generateHydratorClasses($metadatas, $destPath); |
| 94 |
|
|
| 95 |
|
// Outputting information message |
| 96 |
|
$output->write(PHP_EOL . sprintf('Hydrator classes generated to "<info>%s</INFO>"', $destPath) . PHP_EOL); |
| 97 |
|
} else { |
| 98 |
|
$output->write('No Metadata Classes to process.' . PHP_EOL); |
| 99 |
|
} |
| 100 |
|
} |
| 101 |
|
} |
| 102 |
|
|
lib/Doctrine/ODM/MongoDB/Tools/Console/Command/GenerateProxiesCommand.php 1 location
|
@@ 89-103 (lines=15) @@
|
| 86 |
|
); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
if (count($metadatas)) { |
| 90 |
|
foreach ($metadatas as $metadata) { |
| 91 |
|
$output->write( |
| 92 |
|
sprintf('Processing document "<info>%s</info>"', $metadata->name) . PHP_EOL |
| 93 |
|
); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
// Generating Proxies |
| 97 |
|
$dm->getProxyFactory()->generateProxyClasses($metadatas, $destPath); |
| 98 |
|
|
| 99 |
|
// Outputting information message |
| 100 |
|
$output->write(PHP_EOL . sprintf('Proxy classes generated to "<info>%s</INFO>"', $destPath) . PHP_EOL); |
| 101 |
|
} else { |
| 102 |
|
$output->write('No Metadata Classes to process.' . PHP_EOL); |
| 103 |
|
} |
| 104 |
|
} |
| 105 |
|
} |
| 106 |
|
|