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