Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1072

Private property mapping can cause issues, suggest changing to protected

    Details

    • Type: Documentation Documentation
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Documentation
    • Security Level: All
    • Labels:
      None
    • Environment:
      not applicable

      Description

      The documentation recommends using private variables in entities. This can be problematic on entities with relations when using caching drivers as the proxy objects cannot access private variables and so the caching driver can throw notices like

      ...apc_store(): "_id" returned as member variable from __sleep() but
      does not exist in ...

      Making member variables protected resolves this issue when caching is enabled.

      This information would be helpful on the documentation so others can be made aware of this issue. We spent a few days trying to debug the issue before understanding exactly what was going on.

        Activity

        Kevin Bradwick created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 12474 ] jira-feedback [ 13914 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13914 ] jira-feedback2 [ 15778 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15778 ] jira-feedback3 [ 18035 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1072, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Kevin Bradwick
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: