Issue Details (XML | Word | Printable)

Key: DDC-159
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Roman S. Borschel
Reporter: Alexander Brouwer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Doctrine 2 - ORM

XmlDriver repository-class element causes exception

Created: 19/Nov/09 02:00 PM   Updated: 19/Nov/09 05:42 PM
Component/s: Mapping Drivers
Affects Version/s: None
Fix Version/s: 2.0-ALPHA4
Security Level: All


 Description  « Hide
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


 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Roman S. Borschel added a comment - 19/Nov/09 05:42 PM
Thanks for the patch! Fixed now.