Skip to content

Commit

Permalink
Minimum stability changed to stable; Fixed constructor error;
Browse files Browse the repository at this point in the history
  • Loading branch information
DenchikBY committed Apr 6, 2016
1 parent 284f1f5 commit 36afa80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
],
"require": {
"ext-mongodb": "*",
"mongodb/mongodb": "^1.0.0@beta"
"mongodb/mongodb": "^1.0"
},
"autoload": {
"psr-4": {
"DenchikBY\\MongoDB\\": "src/MongoDB"
}
},
"minimum-stability": "dev"
"minimum-stability": "stable"
}
2 changes: 1 addition & 1 deletion src/MongoDB/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Model extends \MongoDB\Collection
*/
public static function init($attributes = [])
{
$model = (new static(Di::getDefault()->get('mongo'), static::getDbName() . '.' . static::getSource()));
$model = (new static(Di::getDefault()->get('mongo'), static::getDbName(), static::getSource()));
if (count($attributes) > 0) {
$model->fill($attributes);
}
Expand Down

0 comments on commit 36afa80

Please sign in to comment.