mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #958] [CLOSED] wrong access modifiers "private" instead of "protected" #8962
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/958
Author: @grytysek
Created: 2/20/2014
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
dd9a51bwrong access modifiers "private" instead of "protected"📊 Changes
1 file changed (+5 additions, -5 deletions)
View changed files
📝
lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php(+5 -5)📄 Description
In symfony2 in file: https://github.com/doctrine/DoctrineBundle/blob/master/Resources/config/orm.xml
In configuration is parameter:
that suggest that is designed to override in private bundles but when you try to do that it's nessesary to repeat entire body of methods in own class because of "private" access modifiers, i suggest to change them to 'protected' because without that it's makes extending this class more difficult and not clear to understand what is going on inside of this classes. I need to override this class to create own versioning system, and i need to extend xml mapping of entities.
I see this mistake often in symfony2 but now i see this also in doctrine2 itself, I suggest to change this modifiers not only in this class...
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.