表題のメモです。
Modelにて。
public function beforeValidate($options = array()) {
$columnTypes = $this->getColumnTypes();
foreach ($this->data[$this->alias] as $field => $value) {
if (!empty($value) && $columnTypes[$field] === 'integer') {
$this->data[$this->alias][$field] = mb_convert_kana($value, 'n', 'UTF-8');
}
}
return true;
}
表題修正
