Browse Source

Merge pull request #162 from creocoder/active-record-get-relation

ActiveRecord::getRelation() bugfix
tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
901dabc301
  1. 2
      framework/db/ActiveRecord.php

2
framework/db/ActiveRecord.php

@ -1124,8 +1124,8 @@ class ActiveRecord extends Model
return $relation; return $relation;
} }
} catch (UnknownMethodException $e) { } catch (UnknownMethodException $e) {
throw new InvalidParamException(get_class($this) . ' has no relation named "' . $name . '".');
} }
throw new InvalidParamException(get_class($this) . ' has no relation named "' . $name . '".');
} }
/** /**

Loading…
Cancel
Save