Skip to content

Commit 6015d84

Browse files
committed
Merge pull request #253 from akost/master
Fixed missed 'function' declaration in readme.md
2 parents 2dcae38 + 5a2d299 commit 6015d84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,11 +908,11 @@ creators of MongoDB describing its addition to Mongoose](http://aaronheckmann.tu
908908
To setup a versioned document you can simply create a model implementing `version()` which returns `true` and, optionally, `versionField()`:
909909

910910
class versioned extends EMongoDocument{
911-
public versioned(){
911+
public function versioned(){
912912
return true;
913913
}
914914
915-
public versionField(){
915+
public function versionField(){
916916
return '_v'; // This is actually the default value in EMongoDocument
917917
}
918918

0 commit comments

Comments
 (0)