-
-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce ClassMetadataFactoryInterface to allow switching implementations #2552
Conversation
malarzm
commented
Sep 30, 2023
Q | A |
---|---|
Type | bugfix |
BC Break | fixing one |
Fixed issues | fixes #2551 |
bd6d99f
to
6c1e90c
Compare
c51a6da
to
b1c8e41
Compare
$metadataFactoryClassName = $this->config->getClassMetadataFactoryName(); | ||
$this->metadataFactory = new $metadataFactoryClassName(); | ||
$this->metadataFactory->setDocumentManager($this); | ||
$this->metadataFactory->setConfiguration($this->config); | ||
$this->metadataFactory->setProxyClassNameResolver($this->classNameResolver); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rearranging so initialization is done in one place
@@ -6,6 +6,7 @@ | |||
|
|||
use Attribute; | |||
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor; | |||
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated, but phpcbf fixed this automatically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Static analysis isn't happy, but LGTM in general.
b1c8e41
to
7dd5a77
Compare
Rebasing as #2553 brought back changes for SA/CS tools to 2.5.x branch. Will work on SA happiness and merge this when CI is green :) |
7dd5a77
to
fbff519
Compare