File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,13 +59,14 @@ public function createDependingRegistrations(Registration $registration): void
5959 $ registrations = $ registration ->getAmountOfRegistrations ();
6060 for ($ i = 1 ; $ i <= $ registrations - 1 ; $ i ++) {
6161 $ newReg = GeneralUtility::makeInstance (Registration::class);
62- $ newReg ->setMainRegistration ($ registration );
63- $ newReg ->setAmountOfRegistrations (1 );
64- $ newReg ->setIgnoreNotifications (true );
6562 $ properties = ObjectAccess::getGettableProperties ($ registration );
6663 foreach ($ properties as $ propertyName => $ propertyValue ) {
6764 ObjectAccess::setProperty ($ newReg , $ propertyName , $ propertyValue );
6865 }
66+ $ newReg ->setMainRegistration ($ registration );
67+ $ newReg ->setAmountOfRegistrations (1 );
68+ $ newReg ->setIgnoreNotifications (true );
69+
6970 /** @var Registration $newReg */
7071 $ this ->registrationRepository ->add ($ newReg );
7172 }
You can’t perform that action at this time.
0 commit comments