Skip to content

Commit

Permalink
Merge pull request #253 from akost/master
Browse files Browse the repository at this point in the history
Fixed missed 'function' declaration in readme.md
  • Loading branch information
Sammaye committed Jul 16, 2015
2 parents 2dcae38 + 5a2d299 commit 6015d84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -908,11 +908,11 @@ creators of MongoDB describing its addition to Mongoose](http://aaronheckmann.tu
To setup a versioned document you can simply create a model implementing `version()` which returns `true` and, optionally, `versionField()`:

class versioned extends EMongoDocument{
public versioned(){
public function versioned(){
return true;
}
public versionField(){
public function versionField(){
return '_v'; // This is actually the default value in EMongoDocument
}
Expand Down

0 comments on commit 6015d84

Please sign in to comment.