예제 #1
0
파일: User.php 프로젝트: zyxist/cantiga
 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()]);
 }