kohana, orm, cant set null value« Wróć do listy pytań
null is ""
|
▲ ▼ |
Edit Model file public function filters() { return array( 'MY_FIELD' => array( array(function($value) { return (!$value) ? NULL : $value; }) ) ); } |