Hi, i have the following problem:
the modem id is an alphanumeric code.
When I update the model, with $model->save(), the query looks for id = code looked for.
I wish I could convert this line to id like searched code.
Example:
UPDATE deposito SET Negozio=Negozio - 1 WHERE Id_Deposito = 80117a79325821
convert in
UPDATE deposito SET Negozio=Negozio - 1 WHERE Id_Deposito like ‘80117a79325821’
I configured it this way since it is a unique code of a product.
When I search for the product using like it finds it.
When I go to update the changes with save() sometimes it doesn’t find the product and therefore it doesn’t even give me the error of how to save it