Skip to content

DDC-753#121

Merged
guilhermeblanco merged 4 commits intodoctrine:masterfrom
FabioBatSilva:DDC-753
Sep 8, 2011
Merged

DDC-753#121
guilhermeblanco merged 4 commits intodoctrine:masterfrom
FabioBatSilva:DDC-753

Conversation

@FabioBatSilva
Copy link
Member

Hello all,

This patch is based on: DDC-753
http://www.doctrine-project.org/jira/browse/DDC-753

This patch is very similar to DDC-869
adds support for register a global custom repository class
Any classes would use that custom repository class, optionally overriding it using some maping (xml,php,annot)..

I need a suggestion on whether I should throw exceptions when the repository does not implement ObjectRepository.
I'm doing this in Configuration#setDefaultRepositoryClassName, may also be necessary in ClassMetadataInfo#setCustomRepositoryClass

What do you think about it?

Thanks ...

Best Regards,
Fabio B. SIlva

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has to derive from Doctrine\ORM\EntityRepository

@beberlei
Copy link
Member

beberlei commented Sep 8, 2011

Except the little note i like this patch, thanks for contributing!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the curly brace should be on its own line

@FabioBatSilva
Copy link
Member Author

Hello,

All changes done

Thanks ...

guilhermeblanco added a commit that referenced this pull request Sep 8, 2011
@guilhermeblanco guilhermeblanco merged commit f8811c4 into doctrine:master Sep 8, 2011
beberlei added a commit that referenced this pull request Jan 23, 2013
Remove "before the lists of scheduled changes are cleared"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants