We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 415e2a6 + 11598c8 commit f05772eCopy full SHA for f05772e
scripts/Phalcon/Builder/Model.php
@@ -142,6 +142,11 @@ public function build()
142
$modelsDir = $config->get('application')->modelsDir;
143
}
144
145
+ // Adjust modelsDir when called from outside of project dir
146
+ if ($this->isConsole() && substr($modelsDir, 0, 3) === '../') {
147
+ $modelsDir = ltrim($modelsDir, './');
148
+ }
149
+
150
$modelsDir = rtrim($modelsDir, '/\\') . DIRECTORY_SEPARATOR;
151
$modelPath = $modelsDir;
152
if (false == $this->isAbsolutePath($modelsDir)) {
0 commit comments