public function create(User $_user, array $file_array) { $file = parent::create($_user, $file_array); $this->_pdo->perform("INSERT INTO rel_file_event (event_id, file_id) VALUES (:e, :f)", ["e" => $this->_event->getId(), "f" => $file->getId()]); return $file; }
public function create(User $_user, array $file_array) { $file = parent::create($_user, $file_array); $this->_pdo->perform("UPDATE pledge_class SET syllabus_id = :s WHERE id = :id", ["id" => $this->_pc->getId(), "s" => $file->getId()]); return $file; }