From: Andrey Kutejko Date: Thu, 11 Jul 2013 18:58:30 +0000 (+0300) Subject: verbose model builder X-Git-Tag: 0.5~173 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=5c1ff23201757d57f9a212c7872f4009698cacba;p=ipf.git verbose model builder --- diff --git a/ipf/command/buildmodels.php b/ipf/command/buildmodels.php index 8308ac9..17dae54 100644 --- a/ipf/command/buildmodels.php +++ b/ipf/command/buildmodels.php @@ -7,12 +7,14 @@ class IPF_Command_BuildModels public function run($args=null) { - print "Build all model classes\n"; + print "Build all model classes\n\n"; $project = IPF_Project::getInstance(); $extraAllwedReferences = $this->frameworkModels($project); - foreach ($this->paths($project) as $path) { + foreach ($this->paths($project) as $p) { + list($name, $path) = $p; + print "$name\n"; $models = IPF_ORM::generateModelsFromYaml($path, $extraAllwedReferences); $extraAllwedReferences = array_merge($extraAllwedReferences, $models); } @@ -29,10 +31,10 @@ class IPF_Command_BuildModels private function paths($project) { $paths = array( - IPF::get('project_path'), + array('Project', IPF::get('project_path')), ); foreach ($project->customApps() as $app) - $paths[] = $app->path; + $paths[] = array($app->getName(), $app->getPath()); return $paths; } }