Skip to content

Loading…

DDC-1029: renaming "load()" in proxy to "__load()" #1618

Closed
doctrinebot opened this Issue · 3 comments

2 participants

@doctrinebot

Jira issue originally created by user @jwage:

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"

@doctrinebot

Comment created by @jwage:

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

@doctrinebot

Comment created by @guilhermeblanco:

Fixed on master

e538128

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.1 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.