Skip to content

Commit

Permalink
Fixed toBSONDocument in Model
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammaye committed Jan 19, 2017
1 parent cbed71c commit a0ccfb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,6 @@ public function getJSONDocument()
*/
public function getBSONDocument()
{
return bson_encode($this->getRawDocument());
return MongoDB\BSON\fromPHP($this->getRawDocument());
}
}
1 change: 1 addition & 0 deletions Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public function getSelect()
public function setFrom($name)
{
$this->_from = $name;
return $this;
}

public function getFrom()
Expand Down

0 comments on commit a0ccfb6

Please sign in to comment.