Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-62

Syntax error in proxy generated for entity in global namespace

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA3
    • Fix Version/s: 2.0-ALPHA3
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      When I define a class in my application, without defining any namespace for it (i'm not using them for my code yet) and mark it as an entity by anotation, the generated Proxy class has following syntax error in its definition:
      ...
      class MyEntityAProxy extends *MyEntity implements \Doctrine\ORM\Proxy\Proxy {
      ...
      (* two backslashes here (JIRA escaped them somehow))

      I've fixed it temporarily by removing backslash from the class template in ProxyFactory.php, but i could probably break something else.

      I'm new to Doctrine 2 and php 5.3 features, sorry if this is a nonsense :]

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Jakub Husák
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: