I have the following error while importing some data via Doctrine :
value1:19.022542
value2:497.795
value3:9466.541667
Caught exception: Validation failed in class DataPerDay
27 fields had validation errors:
* 1 validator failed on value1 (type)
* 1 validator failed on value2 (type)
* 1 validator failed on value3 (type)
I don't understand this validation error !! The fields are of type float, what could be going on here ?
schema.yml :
DataPerDay:
connection: doctrine
tableName: xp_data_per_day
columns:
id:
type: integer(4)
fixed: false
unsigned: false
primary: true
autoincrement: true
inverter_id:
type: integer(4)
fixed: false
unsigned: false
primary: false
notnull: true
autoincrement: false
(...)
value1:
type: float
fixed: false
unsigned: false
primary: false
notnull: false
autoincrement: false
(...)
Weirder still, I have the error on the production environnent, not on localhost :(
EDIT : in BaseDataPerDayFormFilter.class.php, the validators are :
'value1' => new sfValidatorSchemaFilter('text', new sfValidatorNumber(array('required' => false))),
Is this ok ?