File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -293,6 +293,7 @@ private function phaseTwo(): void
293293 );
294294 }
295295
296+ $ this ->timestampedPersister ->persistTimestampedFields ($ componentGroup , true );
296297 $ this ->componentGroupMap [spl_object_id ($ groupBuilder )] = $ componentGroup ;
297298 $ this ->manager ->persist ($ componentGroup );
298299 }
@@ -383,6 +384,7 @@ private function createPositions(GroupBuilder $groupBuilder): bool
383384 $ position ->sortValue = $ item ['sort ' ];
384385 $ position ->component = $ component ;
385386 $ componentGroup ->addComponentPosition ($ position );
387+ $ this ->timestampedPersister ->persistTimestampedFields ($ position , true );
386388 $ this ->manager ->persist ($ component );
387389 $ this ->manager ->persist ($ position );
388390 $ hasAny = true ;
@@ -393,6 +395,7 @@ private function createPositions(GroupBuilder $groupBuilder): bool
393395 $ position ->sortValue = $ item ['sort ' ];
394396 $ position ->pageDataProperty = $ item ['property ' ];
395397 $ componentGroup ->addComponentPosition ($ position );
398+ $ this ->timestampedPersister ->persistTimestampedFields ($ position , true );
396399 $ this ->manager ->persist ($ position );
397400 $ hasAny = true ;
398401 }
Original file line number Diff line number Diff line change 109109use Silverback \ApiComponentsBundle \Form \Type \User \PasswordUpdateType ;
110110use Silverback \ApiComponentsBundle \Form \Type \User \UserLoginType ;
111111use Silverback \ApiComponentsBundle \Form \Type \User \UserRegisterType ;
112+ use Silverback \ApiComponentsBundle \Fixture \CwaFixtureBuilder ;
112113use Silverback \ApiComponentsBundle \Helper \ComponentPosition \ComponentPositionSortValueHelper ;
113114use Silverback \ApiComponentsBundle \Helper \Form \FormCachePurger ;
114115use Silverback \ApiComponentsBundle \Helper \Form \FormSubmitHelper ;
15581559 ->tag ('doctrine.event_listener ' , ['event ' => DoctrineEvents::postFlush]);
15591560 $ services ->alias (PropagateUpdatesListener::class, 'silverback.api_components.event_listener.doctrine.propagate_updates_listener ' );
15601561
1562+ $ services
1563+ ->set (CwaFixtureBuilder::class)
1564+ ->args ([
1565+ new Reference (TimestampedDataPersister::class),
1566+ new Reference (RouteGeneratorInterface::class),
1567+ new Reference (IriConverterInterface::class),
1568+ ]);
1569+
15611570 $ services
15621571 ->set ('silverback.api_components.uploadable.url_generator.api ' )
15631572 ->class (ApiUrlGenerator::class)
You can’t perform that action at this time.
0 commit comments