Cnumbervalidator Error When The Attribute Is A Cdbexpresision Object

When use the CNumberValidator, if the attribute is a CDbExpression, for example "new CDbExpression($attr + 1)", the validator will throw a exception

This problem is related to your logic… why would you validate a CDbExpression… Yii validator cannot know the value that will be given only at the database level at the time the record is added.