NextDom\Helpers\DBHelper::save

Saves an entity inside the repository. If the entity is new a new row will be created. If the entity is not new the row will be updated.