Permalink
Browse files

DoctrineRepository view type_constraint doesn't check for doc.doctrin…

…e_metadata.
  • Loading branch information...
1 parent 46436df commit 9f21650248fc0e4f000749f6d71716df1b66cb5a @marnusw marnusw committed Mar 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/ODM/CouchDB/View/DoctrineRepository.php
View
2 lib/Doctrine/ODM/CouchDB/View/DoctrineRepository.php
@@ -53,7 +53,7 @@ function (doc)
$mapRepositoryTypeConstraint = <<<'JS'
function (doc)
{
- if (doc.doctrine_metadata && doc.doctrine_metadata.indexed) {
+ if (doc.type) {
emit(doc.type, {"_id": doc._id} );
}
}

0 comments on commit 9f21650

Please sign in to comment.