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.
Signature
public function save(mixed
$objToSave,
[boolean
$noProcess = false,
[boolean
$forceReplace = false]] )
Parameters
$objToSave
—
mixed
- Object to save
$noProcess
—
boolean
- Don't call process before and after (preSave, preInsert, postSave, etc.)
$forceReplace
—
boolean
- @TODO: Force le remplacement si pas d'ID ????
Returns
- boolean
- True on save success
Errors/Exceptions
-
CoreException
-
ReflectionException