File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 8
8
- trying
9
9
- staging
10
10
- main
11
+ schedule :
12
+ - cron : ' 0 3 * * 1'
11
13
12
14
env :
13
15
fail-fast : true
Original file line number Diff line number Diff line change @@ -18,25 +18,16 @@ public function __construct(SearchService $searchService)
18
18
19
19
public function postUpdate (LifecycleEventArgs $ args ): void
20
20
{
21
- if (!$ this ->searchService ->isSearchable ($ args ->getObject ())) {
22
- return ;
23
- }
24
21
$ this ->searchService ->index ($ args ->getObjectManager (), $ args ->getObject ());
25
22
}
26
23
27
24
public function postPersist (LifecycleEventArgs $ args ): void
28
25
{
29
- if (!$ this ->searchService ->isSearchable ($ args ->getObject ())) {
30
- return ;
31
- }
32
26
$ this ->searchService ->index ($ args ->getObjectManager (), $ args ->getObject ());
33
27
}
34
28
35
29
public function preRemove (LifecycleEventArgs $ args ): void
36
30
{
37
- if (!$ this ->searchService ->isSearchable ($ args ->getObject ())) {
38
- return ;
39
- }
40
31
$ this ->searchService ->remove ($ args ->getObjectManager (), $ args ->getObject ());
41
32
}
42
33
}
Original file line number Diff line number Diff line change @@ -376,8 +376,8 @@ private static function resolveClass(object $object): string
376
376
377
377
$ resolver ??= (function () {
378
378
// Native lazy objects compatibility
379
- if (class_exists (LegacyReflectionFields::class)) {
380
- return fn ($ object ) => $ object::class ;
379
+ if (PHP_VERSION_ID >= 80400 && class_exists (LegacyReflectionFields::class)) {
380
+ return fn ($ object ) => get_class ( $ object) ;
381
381
}
382
382
383
383
// Doctrine ORM v3+ compatibility
You can’t perform that action at this time.
0 commit comments