public function addTimeWindow(TimeWindow $timeWindow) { $this->timeWindows[$timeWindow->generateHash()] = $timeWindow; }
public function removeTime($entityId) { TimeWindow::deleteAll(['event_id' => $entityId]); }