When use the CNumberValidator, if the attribute is a CDbExpression, for example "new CDbExpression($attr + 1)", the validator will throw a exception
Page 1 of 1
Cnumbervalidator Error When The Attribute Is A Cdbexpresision Object
#2
Posted 28 November 2012 - 04:45 AM
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.
Find more about me.... btw. Do you know your WAN IP?
Share this topic:
Page 1 of 1

Help











