code: public function insertGetId(array $values, $sequence = null)
      {
          list($values, $i18nValues) = $this->filterValues($values);
  
          if($id = $this->query->insertGetId($values, $sequence)) {
              if($this->insertI18n($i18nValues, $id)) {
                  return $id;
              }
          }
  
          return false;
      }
docs: Insert a new record and get the value of the primary key.
  
  @param  array   $values
  @param  string  $sequence
  @return int