Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1029

renaming "load()" in proxy to "__load()"

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Git Master
    • Fix Version/s: 2.1
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      It would be really great if the method "load" is renamed to something more protected like "__load" or "_doctrineOdmLoad" like it has done for public properties
      public $__dm;
      public $__identifier;
      public $isInitialized = false;
      Because otherwise if a referenced document has the same method "load" it causes error like this

      "Fatal error: Cannot redeclare Proxies\ProjectProxy::load() in /projects/tbi_doctrine/tmp/doctrine/proxies/ProjectProxy.php on line 46"

        Issue Links

          Activity

          Hide
          Jonathan H. Wage added a comment -

          This issue is a duplicate of another issue in the ODM. The fix applies to the ORM as well.

          Show
          Jonathan H. Wage added a comment - This issue is a duplicate of another issue in the ODM. The fix applies to the ORM as well.
          Show
          Guilherme Blanco added a comment - Fixed on master https://github.com/doctrine/doctrine2/commit/e5381286458ac467543b23ac1a1a1c613bbc2ff1

            People

            • Assignee:
              Guilherme Blanco
              Reporter:
              Jonathan H. Wage
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: