DDC-159: XmlDriver repository-class element causes exception #197

Closed
opened 2026-01-22 12:30:16 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 19, 2009).

Jira issue originally created by user alex:

Using the repository-class="MyCustomRepository" in the 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
Originally created by @doctrinebot on GitHub (Nov 19, 2009). Jira issue originally created by user alex: 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 ```
admin added the Bug label 2026-01-22 12:30:16 +01:00
admin closed this issue 2026-01-22 12:30:16 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 19, 2009):

Comment created by romanb:

Thanks for the patch! Fixed now.

@doctrinebot commented on GitHub (Nov 19, 2009): Comment created by romanb: Thanks for the patch! Fixed now.
Author
Owner

@doctrinebot commented on GitHub (Nov 19, 2009):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 19, 2009): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#197