Doctrine PHPCR
  1. Doctrine PHPCR
  2. PHPCR-32

separate the logic to determine the document class for a node

    Details

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

      Description

      when loading a node from the database, you can either explicitly specify the document class to be used or it is determined programmatically. you can inject your own logic, but the default logic is right in UnitOfWork, and duplicated. this should be moved to a separate class for better reusability.

      this would also be a good moment to get rid of phpcr:alias in favor of phpcr:class. we could provide an implementation for the old phpcr:alias as one of the resolvers users can plug in, if somebody really prefers the alias approach.

        Activity

        Hide
        Lukas Kahwe added a comment -

        already started to work on that:
        https://github.com/doctrine/phpcr-odm/tree/add-parent-annotation-with_cleanups

        removing phpcr:alias should be easy to do now ..

        Show
        Lukas Kahwe added a comment - already started to work on that: https://github.com/doctrine/phpcr-odm/tree/add-parent-annotation-with_cleanups removing phpcr:alias should be easy to do now ..
        Hide
        Lukas Kahwe added a comment -

        the changes were merged, so this ticket can be closed

        Show
        Lukas Kahwe added a comment - the changes were merged, so this ticket can be closed

          People

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

            Dates

            • Created:
              Updated:
              Resolved: