Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-118

rename "load" method in Proxy object to "__load__"

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0BETA1
    • Fix Version/s: 1.0.0BETA2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Cent OS 5.5, PHP 5.3

      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

          Show
          Jonathan H. Wage added a comment - Fixed for ODM here https://github.com/doctrine/mongodb-odm/commit/bfda83d678af1e2104ce4fba62f9dd47185b210e

            People

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

              Dates

              • Created:
                Updated:
                Resolved: