Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-159

XmlDriver repository-class element causes exception

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-ALPHA4
    • Component/s: Mapping Drivers
    • Security Level: All
    • Labels:
      None

      Description

      Using the repository-class="MyCustomRepository" in the <entity> element causes an error.

      A little debugging led me to Doctrine\ORM\Mapping\Driver\XmlDriver @ 53

      isset($xmlRoot['repository-class']) ? $xmlRoot['repository-class'] : null
      

      Should become

      isset($xmlRoot['repository-class']) ? (string)$xmlRoot['repository-class'] : null
      

        Activity

        Hide
        Roman S. Borschel added a comment -

        Thanks for the patch! Fixed now.

        Show
        Roman S. Borschel added a comment - Thanks for the patch! Fixed now.

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Alexander Brouwer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: