Skip to content

Commit 2e45d39

Browse files
committed
Merge pull request doctrine#513 from zimride/master
Missing check of dropDups flag causes unique index drop/regeneration
2 parents 6ba642b + 65e1500 commit 2e45d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Doctrine/ODM/MongoDB/SchemaManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ public function isMongoIndexEquivalentToDocumentIndex($mongoIndex, $documentInde
409409
}
410410

411411
if (!empty($mongoIndex['unique']) && empty($mongoIndex['dropDups']) &&
412-
!empty($documentIndexOptions['unique']) && !empty($documentIndexOptions)) {
412+
!empty($documentIndexOptions['unique']) && !empty($documentIndexOptions['dropDups'])) {
413413

414414
return false;
415415
}

0 commit comments

Comments
 (0)