Forum

kohana, orm, cant s...
 
Notifications
Clear all

kohana, orm, cant set null value

   RSS

0
Topic starter

null is ""

1 Answer
0
Topic starter

Edit Model file

public function filters()
{
  return array(
    'MY_FIELD' => array(
      array(function($value) {
        return (!$value) ? NULL : $value;
      })
    )
  );
}

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: