It would be great to add the name of the field when calling the updateXXXColumn() method from processValue().
In 1.4RC2, that would mean modifying:
- sfFormDoctrine.class.php, l160: if (false === $ret = $this->$method($value*, $field*))
- sfFormPropel.class.php, l134: if (false === $ret = $this->$method($value*,$field*))
A typical use case:
- when updateXXXColumn() is used to resize an uploaded image:
protected function update**File**Column($value)
{
// ...
// resize the pic
//
return $this->processUploadedFile(**'file'**);
}
The issue here is that you have to repeat & hard code the field name ('file') on the last line. With the proposed enhancement:
protected function update**File**Column($value, $field)
{
// ...
// resize the pic
//
return $this->processUploadedFile($field);
}