Merge pull request #2995 from tharlinsmith/ticket-2994

#2994, unnecessary calls to Model::__isset(null)
This commit is contained in:
Mark Story 2014-03-10 15:53:17 -04:00
commit 47900c10ca

View file

@ -1408,7 +1408,7 @@ class Model extends Object implements CakeEventListener {
list($model, $column) = explode('.', $column);
}
if ($model != $this->alias && isset($this->{$model})) {
if (isset($model) && $model != $this->alias && isset($this->{$model})) {
return $this->{$model}->getColumnType($column);
}