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