예제 #1
0
 /**
  * Adds all needed fields to the form
  */
 private function build()
 {
     $this->form->addText('name', $this->teamMember === null ? null : $this->teamMember->getName(), null, 'inputText title', 'inputTextError title');
     $this->form->addEditor('description', $this->teamMember === null ? null : $this->teamMember->getDescription());
     $this->meta = new Meta($this->form, $this->teamMember === null ? null : $this->teamMember->getMetaId(), 'name', true);
 }
 /**
  * @param TeamMember $teamMember
  */
 public function delete(TeamMember $teamMember)
 {
     $this->database->delete('meta', 'id = ?', [$teamMember->getMetaId()]);
     $this->database->delete('team_members', 'id = ?', [$teamMember->getId()->getBytes()]);
 }