I have just started a new yii project. First I have created a table in mysql with all the fields as null constraint.Later requirement got changed I have made all the columns as not null constraint. So While creating the users with that table crud form, i.e if the admin guy dint select or without entering any values in columns its not giving the errors. It suppose to give the validations like please enter value in that field like that right.
First I have created a table with all null constraint columns. In generating the crud it was not giving any error because all are nullable columns. Later I had to modified all the columns as not null constraints.I have made it.But in crud applications if I use its form and click create with out giving any values its not giving any validation errors. If the column is not null constraint it suppose to give an validation error right.
Can any body tell me how to get the validation errors on a altered table.
In ExplanationMaster.php, please modify the rules method to incorporate the following rules.
public function rules()
{
return array(
array('sourcelanguage,targetlanguage,description','required'),
array('isactive', 'default','value'=>null,'setOnEmpty'=>false),//this is not going to throw errors
);
}