mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Throwing Missing Model error for missing associated classes, per gwoo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4837 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
f1678686a4
commit
3a828d2338
1 changed files with 1 additions and 1 deletions
|
@ -650,7 +650,7 @@ class Model extends Overloadable {
|
|||
|
||||
if(!class_exists($className)) {
|
||||
if (!loadModel($className)) {
|
||||
trigger_error("Model::__constructedLinkedModel() - Failed loading model class {$className} when attempting to construct {$this->name}. Make sure that " . Inflector::underscore($className) . ".php exists in your model path, and that the class name is correct.", E_USER_WARNING);
|
||||
return $this->cakeError('missingModel', array(array('className' => $className)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue