Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1468

Exception verbose: Id in a mapped-superclass

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: ORM
    • Labels:
      None

      Description

      Some exception could/should be more precise (I've lost a lot of time figuring out why I was having an error)

      When you have an id field inside a mapped-superclass, you get the following exception:

      [ErrorException]
      Notice: Undefined index: IdealTech\OnlineSystem\GeoBundle\Entity\AbsAddress in /Users/fmazerolle/Sites/it/os/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php line 121

      The exception should be more verbose and tell the real cause of the error.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        This issue is referenced in Github Pull-Request GH-219
        https://github.com/doctrine/doctrine2/pull/219

        Show
        Benjamin Eberlei added a comment - This issue is referenced in Github Pull-Request GH-219 https://github.com/doctrine/doctrine2/pull/219
        Hide
        Benjamin Eberlei added a comment -

        Related Pull Request was closed: https://github.com/doctrine/doctrine2/pull/219

        Show
        Benjamin Eberlei added a comment - Related Pull Request was closed: https://github.com/doctrine/doctrine2/pull/219
        Show
        Guilherme Blanco added a comment - Fixed in https://github.com/doctrine/doctrine2/commit/f6d9344d892e5e959b4474437258b02777b41eb1
        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-219] was closed:
        https://github.com/doctrine/common/pull/219

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-219] was closed: https://github.com/doctrine/common/pull/219
        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-219] was closed:
        https://github.com/doctrine/dbal/pull/219

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-219] was closed: https://github.com/doctrine/dbal/pull/219

          People

          • Assignee:
            Fabio B. Silva
            Reporter:
            Francois Mazerolle
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: