Comments (4)
This will be fixed in 1.1.1.
from persistence.
Thank you for working on this!
from persistence.
That is correct. After taking a look, I would suggest the following changes:
- If a manager name was given as second argument, it will always attempt to get that manager
- If no manager name was given, it will use
getManagerForClass
to get the first manager that handles this class - If the previous steps did not yield an object manager, the default manager of the registry will be used.
I have the changes made but still need to add a bunch of tests around this functionality since getRepository
wasn't tested at all yet.
from persistence.
oh awesome thank you @alcaeus!
from persistence.
Related Issues (20)
- Error On Composer Update: MappingDriverChain not Found HOT 1
- Issue with PHP 7.4 HOT 4
- Cannot convert cache to PSR-6 cache HOT 16
- `doctrine/cache` is sunset HOT 2
- Use `@no-named-parameters` in interfaces HOT 4
- AnnotationDriver::isTransient() method exception with PHP8 attributes HOT 8
- Don't define Doctrine annotations as a hard dependency? HOT 1
- Support returning a function when using the PhpDriver
- Deprecate short namespace aliases HOT 1
- ObjectManager::merge and detach deprecation messages HOT 2
- Support for Mapping Files on Traits
- Bump doctrine/cache to 2.1? HOT 2
- Unexpected response returned from `AbstractManagerRegistry::getManagerNames()` HOT 5
- Cache key contains reserved characters HOT 2
- Issue with getEntityManagerForClass in 3.*
- Prepended backslash in class name reloads the full metadata from scratch HOT 8
- Properties of the embedded property remain unset HOT 2
- ObjectManager interface lacks of `@throws` annotation. HOT 5
- Failed to retrieve the reflection object for documents with enum HOT 1
- Issues with the compatibility of getRepository() function in MongoDB DocumentManager and Persistence ManagerRegistry HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from persistence.