ActiveRecord::getRelation() bugfix

This commit is contained in:
Alexander Kochetov
2013-05-07 18:36:38 +04:00
parent dd5969147d
commit 37f3a400cd

View File

@ -1131,9 +1131,9 @@ class ActiveRecord extends Model
return $relation;
}
} catch (UnknownMethodException $e) {
}
throw new InvalidParamException(get_class($this) . ' has no relation named "' . $name . '".');
}
}
/**
* Establishes the relationship between two models.