Browse Source

ActiveRecord::getRelation() bugfix

tags/2.0.0-beta
Alexander Kochetov 12 years ago
parent
commit
37f3a400cd
  1. 2
      framework/db/ActiveRecord.php

2
framework/db/ActiveRecord.php

@ -1131,8 +1131,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