Good morning
I have the following function.
/* Función para incrementar el contador para consecutivo de clientes*/
public function putAddConsecutiveClient($noCarteraSap)
{
$model_get = new $this->modelClass;
$model = $model_get::findFirst([
"conditions" => ":noCarteraSap: BETWEEN desde AND hasta",
"bind" => ["noCarteraSap" => $noCarteraSap]
]);
$model->contador = $model->contador + 1;
}
As far as I have already done what I want but how can I make the database update in the database without using a sql statement?
Is it possible?
Greetings and thanks