-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: Doctrine
-
None
-
None
-
PHP Drivers
-
None
-
None
-
None
-
None
-
None
-
None
In metadata attributes for Reference and Embedded relations, the property $cascade is not documented. The list list of available values should be in the type.
Using an enum would be useful.
Or an object:
#[ReferenceOne(targetDocument: Foo::class, cascade: new Cascade(
persist: true,
remove: false,
))]