You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I defined an Employee class:
class Employee extends Lucid {
static get primaryKey () {
return **'employee_id';**
}
[...]
In my EmployeeController class destroy function
[...]
const employee = yield Employee.find(2); // hard-coded ID for test
yield employee.delete();
[...]
Using AdonisJS 3.0
I defined an Employee class:
class Employee extends Lucid {
[...]
In my EmployeeController class destroy function
[...]
const employee = yield Employee.find(2); // hard-coded ID for test
yield employee.delete();
[...]
Sqlite3 debug statement:
{ method: 'update',
options: {},
bindings: [ '2016-09-27 00:15:46', '2016-09-27 00:15:46', 2 ],
sql: 'update "employees" set "deleted_at" = ?, "updated_at" = ? where "id" = ?' }
The text was updated successfully, but these errors were encountered: