Permalink
Browse files

Merge pull request #513 from zimride/master

Missing check of dropDups flag causes unique index drop/regeneration
  • Loading branch information...
2 parents 6ba642b + 65e1500 commit 2e45d398fa68f89e9b8a439f796f0955d6461f5a @jmikola jmikola committed Feb 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/ODM/MongoDB/SchemaManager.php
@@ -409,7 +409,7 @@ public function isMongoIndexEquivalentToDocumentIndex($mongoIndex, $documentInde
}
if (!empty($mongoIndex['unique']) && empty($mongoIndex['dropDups']) &&
- !empty($documentIndexOptions['unique']) && !empty($documentIndexOptions)) {
+ !empty($documentIndexOptions['unique']) && !empty($documentIndexOptions['dropDups'])) {
return false;
}

0 comments on commit 2e45d39

Please sign in to comment.