public function populateRecord($attributes, $callAfterFind = true) { $table = $this->getMetaData()->tableSchema; foreach ($table->columns as $column) { if (DataType::getInputType($column->dbType) != "file") { if (isset($attributes[$column->name])) { SqlUtil::FixValue($attributes[$column->name]); } } } return parent::populateRecord($attributes, $callAfterFind); }