|
|
|
|
|
by qeorge
5213 days ago
|
|
I like the approach Yii (PHP framework) takes: http://www.yiiframework.com/wiki/161/understanding-safe-vali... If a field doesn't have any validation rules set it will be thrown out when you save the model. This way you won't mass-assign to a column that was never meant to be mutable. Its a little more work to get up and running, but I think its a good tradeoff. (You do have the option of turning this off, but you'd have to do it intentionally). |
|