示例#1
0
 /**
  * @param  array $values    Values to insert
  * @param  array $expected  Expected values, the rest will be ignored
  * @return Model_User
  */
 public function create_user($values, $expected)
 {
     if (!isset($values['timezone_id'])) {
         $values['timezone_id'] = Kohana::$config->load('date.default_timezone');
     }
     $expected[] = 'timezone_id';
     return parent::create_user($values, $expected);
 }