Skip to content

Commit 5d92931

Browse files
committed
Fix page data test entities, set null when component deleted
1 parent 42711a6 commit 5d92931

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Functional/TestBundle/Entity/PageDataWithComponent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
class PageDataWithComponent extends AbstractPageData
2626
{
2727
#[ORM\ManyToOne(targetEntity: DummyComponent::class)]
28+
#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]
2829
public ?DummyComponent $component = null;
2930

3031
#[ORM\ManyToOne(targetEntity: DummyPublishableComponent::class)]
32+
#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]
3133
public ?DummyPublishableComponent $publishableComponent = null;
3234
}

0 commit comments

Comments
 (0)