|
|
|
|
@ -98,74 +98,54 @@ class RegistrantEntity |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return User |
|
|
|
|
*/ |
|
|
|
|
public function getUser() |
|
|
|
|
{ |
|
|
|
|
return $this->user; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @throws Exception |
|
|
|
|
* @param MeetingEntity $meeting |
|
|
|
|
* |
|
|
|
|
* @return MeetingRegistrantListItem |
|
|
|
|
* @return $this |
|
|
|
|
*/ |
|
|
|
|
public function getMeetingRegistrantListItem() |
|
|
|
|
public function setMeeting($meeting) |
|
|
|
|
{ |
|
|
|
|
return $this->meetingRegistrantListItem; |
|
|
|
|
} |
|
|
|
|
$this->meeting = $meeting; |
|
|
|
|
$this->meeting->getRegistrants()->add($this); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @throws Exception |
|
|
|
|
* |
|
|
|
|
* @return CreatedRegistration |
|
|
|
|
*/ |
|
|
|
|
public function getCreatedRegistration() |
|
|
|
|
{ |
|
|
|
|
return $this->createdRegistration; |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @throws Exception |
|
|
|
|
* |
|
|
|
|
* @return MeetingRegistrant |
|
|
|
|
* @return User |
|
|
|
|
*/ |
|
|
|
|
public function getMeetingRegistrant() |
|
|
|
|
public function getUser() |
|
|
|
|
{ |
|
|
|
|
return $this->meetingRegistrant; |
|
|
|
|
return $this->user; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param MeetingEntity $meeting |
|
|
|
|
* @param User $user |
|
|
|
|
* |
|
|
|
|
* @return $this |
|
|
|
|
*/ |
|
|
|
|
public function setMeeting($meeting) |
|
|
|
|
public function setUser($user) |
|
|
|
|
{ |
|
|
|
|
$this->meeting = $meeting; |
|
|
|
|
$this->meeting->getRegistrants()->add($this); |
|
|
|
|
$this->user = $user; |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param User $user |
|
|
|
|
* @return MeetingRegistrantListItem |
|
|
|
|
* @throws Exception |
|
|
|
|
* |
|
|
|
|
* @return $this |
|
|
|
|
*/ |
|
|
|
|
public function setUser($user) |
|
|
|
|
public function getMeetingRegistrantListItem() |
|
|
|
|
{ |
|
|
|
|
$this->user = $user; |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
return $this->meetingRegistrantListItem; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param MeetingRegistrantListItem $meetingRegistrantListItem |
|
|
|
|
* |
|
|
|
|
* @return $this |
|
|
|
|
* @throws Exception |
|
|
|
|
* |
|
|
|
|
* @return $this |
|
|
|
|
*/ |
|
|
|
|
public function setMeetingRegistrantListItem($meetingRegistrantListItem) |
|
|
|
|
{ |
|
|
|
|
@ -178,12 +158,30 @@ class RegistrantEntity |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function computeFullName() |
|
|
|
|
{ |
|
|
|
|
$this->fullName = api_get_person_name( |
|
|
|
|
$this->meetingRegistrant->first_name, |
|
|
|
|
$this->meetingRegistrant->last_name |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return CreatedRegistration |
|
|
|
|
* @throws Exception |
|
|
|
|
* |
|
|
|
|
*/ |
|
|
|
|
public function getCreatedRegistration() |
|
|
|
|
{ |
|
|
|
|
return $this->createdRegistration; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param CreatedRegistration $createdRegistration |
|
|
|
|
* |
|
|
|
|
* @return $this |
|
|
|
|
* @throws Exception |
|
|
|
|
* |
|
|
|
|
* @return $this |
|
|
|
|
*/ |
|
|
|
|
public function setCreatedRegistration($createdRegistration) |
|
|
|
|
{ |
|
|
|
|
@ -197,12 +195,22 @@ class RegistrantEntity |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return MeetingRegistrant |
|
|
|
|
* @throws Exception |
|
|
|
|
* |
|
|
|
|
*/ |
|
|
|
|
public function getMeetingRegistrant() |
|
|
|
|
{ |
|
|
|
|
return $this->meetingRegistrant; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param MeetingRegistrant $meetingRegistrant |
|
|
|
|
* |
|
|
|
|
* @return $this |
|
|
|
|
* @throws Exception |
|
|
|
|
* |
|
|
|
|
* @return $this |
|
|
|
|
*/ |
|
|
|
|
public function setMeetingRegistrant($meetingRegistrant) |
|
|
|
|
{ |
|
|
|
|
@ -219,13 +227,13 @@ class RegistrantEntity |
|
|
|
|
*/ |
|
|
|
|
public function postLoad() |
|
|
|
|
{ |
|
|
|
|
if (!is_null($this->meetingRegistrantJson)) { |
|
|
|
|
if (null !== $this->meetingRegistrantJson) { |
|
|
|
|
$this->meetingRegistrant = MeetingRegistrant::fromJson($this->meetingRegistrantJson); |
|
|
|
|
} |
|
|
|
|
if (!is_null($this->createdRegistrationJson)) { |
|
|
|
|
if (null !== $this->createdRegistrationJson) { |
|
|
|
|
$this->createdRegistration = CreatedRegistration::fromJson($this->createdRegistrationJson); |
|
|
|
|
} |
|
|
|
|
if (!is_null($this->meetingRegistrantListItemJson)) { |
|
|
|
|
if (null !== $this->meetingRegistrantListItemJson) { |
|
|
|
|
$this->meetingRegistrantListItem = MeetingRegistrantListItem::fromJson( |
|
|
|
|
$this->meetingRegistrantListItemJson |
|
|
|
|
); |
|
|
|
|
@ -238,22 +246,14 @@ class RegistrantEntity |
|
|
|
|
*/ |
|
|
|
|
public function preFlush() |
|
|
|
|
{ |
|
|
|
|
if (!is_null($this->meetingRegistrant)) { |
|
|
|
|
if (null !== $this->meetingRegistrant) { |
|
|
|
|
$this->meetingRegistrantJson = json_encode($this->meetingRegistrant); |
|
|
|
|
} |
|
|
|
|
if (!is_null($this->createdRegistration)) { |
|
|
|
|
if (null !== $this->createdRegistration) { |
|
|
|
|
$this->createdRegistrationJson = json_encode($this->createdRegistration); |
|
|
|
|
} |
|
|
|
|
if (!is_null($this->meetingRegistrantListItem)) { |
|
|
|
|
if (null !== $this->meetingRegistrantListItem) { |
|
|
|
|
$this->meetingRegistrantListItemJson = json_encode($this->meetingRegistrantListItem); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function computeFullName() |
|
|
|
|
{ |
|
|
|
|
$this->fullName = api_get_person_name( |
|
|
|
|
$this->meetingRegistrant->first_name, |
|
|
|
|
$this->meetingRegistrant->last_name |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|