_attendeeObj = null; return parent::setPrimaryKey($_primaryKey); } public function clearData() { $this->_attendeeObj = null; return parent::clearData(); } protected function _addDependenciesFromDb(array &$data) { $data['timeRanges'] = Model::readEventTimeRanges($this->getPrimaryKey()); return parent::_addDependenciesFromDb($data); } public function getNonMembersAllowed($eventType = null) { return true; } /** * @param array $options * @return \App\Event\Attendee\AbstractObj * @throws \Exception */ public function getAttendeeObj(array $options = []) { throw new Exception('Method ' . __METHOD__ . 'should be overwritten'); } }