DDC-679: Allow \Doctrine\* classes to be extended and used #836

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

Originally created by @doctrinebot on GitHub (Jul 10, 2010).

Jira issue originally created by user jorritposthuma:

Sometimes, one might want to extend the Doctrine ORM / DBAL / Common classes to provide extra, or specialized features. If i remember correctly, Doctrine 1.2 had way's to change the classes used by Doctrine, so the developer could extend the default class, and provide the new to Doctrine.

What is your view on this?

For example, I would very much like to extend the DQL parser, but of course without changing the original Doctrine code-base.

Originally created by @doctrinebot on GitHub (Jul 10, 2010). Jira issue originally created by user jorritposthuma: Sometimes, one might want to extend the Doctrine ORM / DBAL / Common classes to provide extra, or specialized features. If i remember correctly, Doctrine 1.2 had way's to change the classes used by Doctrine, so the developer could extend the default class, and provide the new to Doctrine. What is your view on this? For example, I would very much like to extend the DQL parser, but of course without changing the original Doctrine code-base.
admin added the Improvement label 2026-01-22 12:52:11 +01:00
admin closed this issue 2026-01-22 12:52:12 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jul 10, 2010):

Comment created by romanb:

Doctrine is extensible in the places where we design it to be so. You need to be much more concrete with your request.

Concerning the DQL parser, read up on the reference documentation and the cookbook. There are 2 cookbook articles that deal with DQL customizations.

@doctrinebot commented on GitHub (Jul 10, 2010): Comment created by romanb: Doctrine is extensible in the places where we design it to be so. You need to be **much** more concrete with your request. Concerning the DQL parser, read up on the reference documentation and the cookbook. There are 2 cookbook articles that deal with DQL customizations.
Author
Owner

@doctrinebot commented on GitHub (Jul 10, 2010):

Issue was closed with resolution "Invalid"

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

No dependencies set.

Reference: doctrine/archived-orm#836