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,9 +1131,9 @@ 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 . '".');
} }
}
/** /**
* Establishes the relationship between two models. * Establishes the relationship between two models.

Loading…
Cancel
Save