sokil / php-mongo

MongoDB ODM. Part of @PHPMongoKit
http://phpmongokit.github.io/
MIT License
242 stars 46 forks source link

Document validation scenatio before save #136

Open sokil opened 7 years ago

sokil commented 7 years ago

Currently Document::validate calls if first argument of Document::save passed to true. It throws exception. There is reason allowing scenario when document silently validated, and resulot obtainded from Document::getErrors