Cascade persist checkout links

This commit is contained in:
2024-09-11 13:58:43 +02:00
parent c3d6d4cc3e
commit 8630e2191e
+1 -1
View File
@@ -85,7 +85,7 @@ class GatewayCheckout
* @var Collection<int, GatewayCheckoutLink>
*/
#[API\ApiProperty(writable: false)]
#[ORM\OneToMany(mappedBy: 'checkout', targetEntity: GatewayCheckoutLink::class)]
#[ORM\OneToMany(mappedBy: 'checkout', targetEntity: GatewayCheckoutLink::class, cascade: ['persist'])]
private Collection $links;
/**