public function create($values = []){
    $keys   = array_keys($values);
    $values = array_values($values);
    
    $this->db->insert(
      $this->getSource(),
      $keys
    );
    
    $res = $this->db->execute($values);
    
    $this->id = $this->db->lastInsertId();
    
    return $res;
  }
public function create($values = []){
    $keys   = array_keys($values);
    $values = array_values($values);
    
    $this->db->insert(
      $this->getSource(),
      $keys
    );
    
    $res = $this->db->execute($values);
    
    $this->id = $this->db->lastInsertId();
    
    return $res;
  }
public function create ( $ values = [ ] ) { $ keys = array_keys ( $ values ) ; $ values = array_values ( $ values ) ; $ this -> db -> insert ( $ this -> getSource ( ) , $ keys ) ; $ res = $ this -> db -> execute ( $ values ) ; $ this -> id = $ this -> db -> lastInsertId ( ) ; return $ res ; }
Create new row

@Param   Array     $values     Key/values to save
@Return  Boolean   True/false  If saving went okey
Create new row