-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
[2.0] Merge ClassMetadataInfo into ClassMetadata #1733
Conversation
@@ -5,7 +5,7 @@ | |||
use Doctrine\ODM\MongoDB\DocumentRepository; | |||
use Doctrine\ODM\MongoDB\Events; | |||
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; | |||
use Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo; | |||
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.
This file and test class should be renamed (or merged with ClassMetadataTest).
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.
Thanks, this is the conflict, I was tring to find. I’ll merge them as we only have ClassMetadata
now
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.
There's still something going wrong, but is with tests, not the merge 😢
I only checked one test ( Solution: either create the properties that are causing failing tests or change the failing tests to map existing properties. |
@alcaeus These are the failing tests in
May I ask you to fix them? I barely understand |
Sure, I'll take a look at them tonight. I'll push changes to your branch 👍 |
@carusogabriel looks like I can't push changes for some reason, so I created https://github.com/carusogabriel/mongodb-odm/pull/1. |
Strange, but okay, merged 😄 |
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.
LGTM. Thanks @carusogabriel!
@@ -32,7 +31,7 @@ class AnnotationDriver extends AbstractAnnotationDriver | |||
*/ | |||
public function loadMetadataForClass($className, ClassMetadata $class) |
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.
Can we use FQCN for Common's ClassMetadata
and get rid of aliasing our own one?
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'd alias the common one. 😇
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.
Sorry for being a layman, but what means FQCN? The full namespaces class?
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.
Fully-Qualified Class Name.
@@ -32,7 +31,7 @@ public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENS | |||
*/ | |||
public function loadMetadataForClass($className, ClassMetadata $class) |
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.
No need to rename here as this driver is removed in #1734 anyway
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.
So I'll wait and rebase!
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.
No need, I first need to tackle documentation. Please change the other places and let's get this merged, I'll rebase my PR later :)
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.
Sorry, you'll need to rebase after all as I've just finished with docs and merged YAML removal ;)
@@ -2,7 +2,7 @@ | |||
|
|||
namespace Doctrine\ODM\MongoDB\Tools\Console\Command; | |||
|
|||
use Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo; | |||
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.
If I'm seeing correctly this is unused, should be removed
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'll see that, thanks!
@@ -30,7 +29,7 @@ public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENS | |||
*/ | |||
public function loadMetadataForClass($className, ClassMetadata $class) |
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'd appreciate getting rid of alias here as well
The only thing that should be done is the rebase? |
Rebase to solve conflicts and then if you could apply my remarks it'd be great 👍 |
Thanks @carusogabriel, sorry for long merging I must have overlooked notification about last change you did :) |
This closes #1727 by merge
ClassMetadataInfo
intoClassMetadata
as suggested by @alcaeus in #1714