Skip to content

Doctrine\ODM\MongoDB\Tools\Console\Command\Schema\ValidateCommand marks each mapping got issues #2289

Closed
@dominikzogg

Description

@dominikzogg

Bug Report

Q A
BC Break no
Version 2.2.0

Summary

The ValidateCommand uses $meta === unserialize(serialize($meta) to find mapping issues (no idea why it solved like that).
The original code used $meta == unserialize(serialize($meta) which could be correct, but the current one is not, cause you'll never get the same object reference again using serialize and unserialize

ef8670e#diff-54c6e453a03312a38081f1e6ce97d10c51e2543e9b40c5b0e5f05d9ae922b0c4 changed that.

Current behavior

Each mapping got mapping issue in depend if they are mapping issues

How to reproduce

Run the command with any mapping

Expected behavior

Only the mappings contain issues get reported.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions