ORM\MappingException does not extend Persistence\MappingException #7120

Open
opened 2026-01-22 15:45:07 +01:00 by admin · 1 comment
Owner

Originally created by @nikophil on GitHub (Mar 22, 2023).

Bug Report

Q A
BC Break no
Version any

Hello!

is it normal that Doctrine\ORM\Mapping\MappingException does not extend Doctrine\Persistence\Mapping\MappingException?

(but \Doctrine\ODM\MongoDB\Mapping\MappingException does!)

Originally created by @nikophil on GitHub (Mar 22, 2023). ### Bug Report <!-- Fill in the relevant information below to help triage your issue. --> | Q | A |------------ | ------ | BC Break | no | Version | any Hello! is it normal that `Doctrine\ORM\Mapping\MappingException` does not extend `Doctrine\Persistence\Mapping\MappingException`? (but `\Doctrine\ODM\MongoDB\Mapping\MappingException` does!)
Author
Owner

@greg0ire commented on GitHub (Mar 22, 2023):

I'd say that's because the ORM has a base ORMException class that needs to be extended by every exception in doctrine/orm

@greg0ire commented on GitHub (Mar 22, 2023): I'd say that's because the ORM has a base `ORMException` class that needs to be extended by every exception in `doctrine/orm`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7120