Example #1
0
 public function remove($id)
 {
     $this->setWhere(array('id' => $id));
     $this->delete();
     $filesModel = new Files();
     $filesModel->removeFilesByProject($id);
     $executorsModel = new Executors();
     $executorsModel->setWhere(array('projects_id' => $id));
     $executorsModel->delete();
     $tasksModel = new Tasks();
     $tasksModel->removeTasksByProjectId($id);
 }