HI, i have this problem
"An exception occurred while executing ‘INSERT INTO “oc_myapp” () VALUES()’: SQLSTATE[HY000]: General error: 1 near “)”: syntax error"
when i try to do the “insert” method with my object on the controller.
this appears in the console :
{“reqId”:“gbdFDJIM9ZNwogGclTlT”,“level”:0,“time”:“2020-11-30T14:50:56+00:00”,“remoteAddr”:"",“user”:"–",“app”:“files_sharing”,“method”:"",“url”:"–",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:"–",“version”:“20.0.0.9”}
this is what i try to do in the controller :
try{
$this->mapper->add(true, false, 8);
die;
}catch(\Exception $e){
die($e->getMessage());
}
this is in the mapper method
function add($t, $fileId, $userId){
$note = new EasySignature();
$note->setUserState($t);
$note->setFileid($fileId);
$note->setUserId($userId);
return $this->insert($note);
** })**
how i can fix it? Thank you.