/** * @param ChildNotification $notificationRelatedByUserId The ChildNotification object to add. */ protected function doAddNotificationRelatedByUserId(ChildNotification $notificationRelatedByUserId) { $this->collNotificationsRelatedByUserId[] = $notificationRelatedByUserId; $notificationRelatedByUserId->setUser($this); }