YiiMongoDbSuite
YiiMongoDbSuite copied to clipboard
Documentation bug
// We can define rules for fields, just like in normal CModel/CActiveRecord classes public function rules() { return array( array('login, email, personal_no', 'required'), array('personal_no', 'numeric', 'integerOnly' => true), array('email', 'email'), ); }
it should be numerical not numeric http://canni.github.com/YiiMongoDbSuite/xhtml_single/index.html#toc:basic_simple-model
edit : added link to docs