Data is not saving properly

I have a database table named Dish

In the database, there is a column ‘description’

In rules for the table, If the ‘description’ is set to required, it is saved in database else it does not save.

Add it to the safe attribute in the rules so it will be saved without being required

NOTE: moved to proper sub-forum (this is not a bug)

Please check:

http://www.yiiframework.com/doc/guide/1.1/en/form.model#securing-attribute-assignments

Also there is nice wiki article about safe attributes:

http://www.yiiframework.com/wiki/161/understanding-safe-validation-rules

Thanks All …

I missed