src/MVC/CDatabaseModel.php
public function save($values = []){
    $this->setProperties($values);
    $values = $this->getProperties();
    
    if(isset($values['id']))
      return $this->update($values);
    else
      return $this->create($values);
  }
public function save($values = []){
    $this->setProperties($values);
    $values = $this->getProperties();
    
    if(isset($values['id']))
      return $this->update($values);
    else
      return $this->create($values);
  }
Save current object/row

@Param   Array     $values     Key/values to save or empty to use object properties
@Return  Boolean   True/false  If saving went okey