Improve ReferenceOne::$cascade property type definition

XMLWordPrintableJSON

    • 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,
      ))]

            Assignee:
            Unassigned
            Reporter:
            Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: