Forum

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

kohana, orm, cant set null value

1 Posty
1 Users
0 Reactions
1,205 Widok
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: