Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-700

Proxy class is created for MappedSuperclass class

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA2
    • Fix Version/s: 2.0-BETA4
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      Windows, PHP 5.3.2

      Description

      When having abstract class as Mapped Superclass the proxy class is created without the "abstract" keyword which raises fatal PHP error "Class %proxyClassName% contains 1 abstract method and must therefore be declared abstract or implement the remaining methods" when read.

      I think there is no need to generate the proxy classes for classes marked as @MappedSuperclass at all.

        Activity

        Hide
        Aigars Gedroics added a comment -

        Patch which adds the "abstract" keyword for problematic proxies

        Show
        Aigars Gedroics added a comment - Patch which adds the "abstract" keyword for problematic proxies
        Hide
        Benjamin Eberlei added a comment -

        Fixed, skip generation of proxies for mapped superclasses.

        Show
        Benjamin Eberlei added a comment - Fixed, skip generation of proxies for mapped superclasses.

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Aigars Gedroics
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: