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

get_class() expects parameter 1 to be object, array given

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0BETA2
    • Component/s: None
    • Labels:
      None

      Description

      The commit on October 4th introduced a bug for me.
      Exactly this line:

      http://github.com/doctrine/mongodb-odm/commit/8bd3aef4055cfded62687d5ad0e762e3f12a473d#commitcomment-167197

      Now I always get an error, because embeddedDocument is an array, and so get_class fails.

        Activity

        Sebastian Hoitz created issue -
        Hide
        Jonathan H. Wage added a comment -

        Can you give the error you get? maybe the document definitions and code you're using when flushing?

        Show
        Jonathan H. Wage added a comment - Can you give the error you get? maybe the document definitions and code you're using when flushing?
        Hide
        Jonathan H. Wage added a comment -

        This is not a problem anymore after the recent refactoring!

        Show
        Jonathan H. Wage added a comment - This is not a problem anymore after the recent refactoring!
        Jonathan H. Wage made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.0.0BETA2 [ 10092 ]
        Resolution Fixed [ 1 ]

        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=MODM-87, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: