Documentation bug #48

Open
melkorm opened this Issue Jul 31, 2011 · 0 comments

Projects

None yet

1 participant

@melkorm
melkorm commented Jul 31, 2011

// 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment