public function remove(Connection $conn) { $conn->update(CoreTables::USER_TBL, ['removed' => 1, 'active' => 0, 'name' => '???'], DataMappers::id($this)); $conn->executeQuery('DELETE FROM `' . CoreTables::USER_PROFILE_TBL . '` WHERE `userId` = :id', [':id' => $this->getId()]); }