-
Notifications
You must be signed in to change notification settings - Fork 97
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
Support ORM's embeddables #108
base: 1.3.x
Are you sure you want to change the base?
Conversation
@@ -64,9 +68,6 @@ public function processNode(Node $node, Scope $scope): array | |||
} | |||
|
|||
$className = $class->getName(); | |||
if ($objectManager->getMetadataFactory()->isTransient($className)) { |
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.
I'm trying to figure out internally why the embeddables are considered transient, but removal of this check causes no test failures
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.
Also classes not managed by Doctrine will have an exception thrown a bit later while trying to get their metadata and will return early from the rule with no errors, so I believe the intent is preserved
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.
I've created an issue in ORM but I think we can continue without waiting for its resolution doctrine/orm#8006
PR is now ready :) |
Anybody? @lookyman @ondrejmirtes ? |
Hi, sorry for keeping you waiting, I'll look into this when I have the time. |
b2b2414
to
1fe21ab
Compare
Any news on this one? It would be helpful imo. :-) |
Looks like this PR has conflicts, but it would be helpful to have it merged :) |
aa4e98e
to
8b28264
Compare
Today at work I've realized there's currently no rules for ORM's embeddables so here's an attempt to change that :) I'll remove WIP once I'm done with my goals, for now I'm making a PR for early feedback (or to learn that somebody else is already working on this).
Goals: