Doctrine PHPCR
  1. Doctrine PHPCR
  2. PHPCR-35

referenced documents need to be referenceable

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Labels:
      None

      Description

      currently documents referenced need to have referenceable=true in their document annotation, otherwise the @ReferenceOne silently fails. (see also https://github.com/symfony-cmf/cmf-sandbox/pull/29 )

      either phpcr-odm should complain. or it could just add the mix:referenceable to the target document even though it was not declared referenceable.
      we could additionally make referenceable=true the default and offer explicit referenceable=false for optimization.

        Activity

        Hide
        Uwe Jäger added a comment -

        I will cover the first part for now, let phpcr -odm complain ...

        Show
        Uwe Jäger added a comment - I will cover the first part for now, let phpcr -odm complain ...
        Hide
        Uwe Jäger added a comment -

        This fixed now, but I can't close that issue ...

        Show
        Uwe Jäger added a comment - This fixed now, but I can't close that issue ...

          People

          • Assignee:
            Jordi Boggiano
            Reporter:
            David Buchmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: