示例#1
0
 public function toRow()
 {
     $ret = parent::toRow();
     if (!isset($ret['day']) || $ret['day'] == '') {
         $ret['day'] = null;
     }
     return $ret;
 }
 public function toRow()
 {
     $ret = parent::toRow();
     if (@$ret['day'] == '') {
         $ret['day'] = null;
     }
     if (@$ret['product_id'] == '') {
         $ret['product_id'] = null;
     }
     return $ret;
 }