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:
nate 2007-04-11 18:01:24 +00:00
parent f1678686a4
commit 3a828d2338

View file

@ -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)));
}
}