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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: