| @@ 216-224 (lines=9) @@ | ||
| 213 | /** @var Calendar $calendar */ |
|
| 214 | $calendar = $this->calendar->findDefaultCalendar($user->getId(), $user->getOrganization()->getId()); |
|
| 215 | ||
| 216 | if (mt_rand(0, 1)) { |
|
| 217 | $calendarProperty = new CalendarProperty(); |
|
| 218 | $calendarProperty |
|
| 219 | ->setTargetCalendar($calendarAdmin) |
|
| 220 | ->setCalendarAlias('user') |
|
| 221 | ->setCalendar($calendar->getId()); |
|
| 222 | ||
| 223 | $this->em->persist($calendarProperty); |
|
| 224 | } |
|
| 225 | ||
| 226 | if (mt_rand(0, 1)) { |
|
| 227 | $calendarProperty = new CalendarProperty(); |
|
| @@ 226-234 (lines=9) @@ | ||
| 223 | $this->em->persist($calendarProperty); |
|
| 224 | } |
|
| 225 | ||
| 226 | if (mt_rand(0, 1)) { |
|
| 227 | $calendarProperty = new CalendarProperty(); |
|
| 228 | $calendarProperty |
|
| 229 | ->setTargetCalendar($calendarSale) |
|
| 230 | ->setCalendarAlias('user') |
|
| 231 | ->setCalendar($calendar->getId()); |
|
| 232 | ||
| 233 | $this->em->persist($calendarProperty); |
|
| 234 | } |
|
| 235 | ||
| 236 | if (mt_rand(0, 1)) { |
|
| 237 | $calendarProperty = new CalendarProperty(); |
|
| @@ 236-244 (lines=9) @@ | ||
| 233 | $this->em->persist($calendarProperty); |
|
| 234 | } |
|
| 235 | ||
| 236 | if (mt_rand(0, 1)) { |
|
| 237 | $calendarProperty = new CalendarProperty(); |
|
| 238 | $calendarProperty |
|
| 239 | ->setTargetCalendar($calendarMarket) |
|
| 240 | ->setCalendarAlias('user') |
|
| 241 | ->setCalendar($calendar->getId()); |
|
| 242 | ||
| 243 | $this->em->persist($calendarProperty); |
|
| 244 | } |
|
| 245 | ||
| 246 | $this->em->persist($calendar); |
|
| 247 | } |
|