Skip to content

Commit db540e2

Browse files
authored
BUGFIX cascade Stats (#14)
dd cascade_duplicates and cascade_deletes for `Stats`
1 parent b2a0bff commit db540e2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/Elements/ElementStatCounters.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ class ElementStatCounters extends BaseElement
5555
'Stats' => StatCounter::class,
5656
];
5757

58+
/**
59+
* @var array
60+
* @config
61+
*/
62+
private static $cascade_duplicates = [
63+
'Stats',
64+
];
65+
66+
/**
67+
* @var array
68+
* @config
69+
*/
70+
private static array $cascade_deletes = [
71+
'Stats',
72+
];
73+
74+
5875
/**
5976
* @var bool
6077
*/

0 commit comments

Comments
 (0)