Permalink
Browse files

Leave TODO for DocumentRepository::find() edge case (see #768)

  • Loading branch information...
1 parent 3171fa4 commit 9f8de1890d74739b59e25543d806165d0ad5e3b1 @jmikola jmikola committed Jan 16, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Doctrine/ODM/MongoDB/DocumentRepository.php
@@ -108,6 +108,9 @@ public function find($id, $lockMode = LockMode::NONE, $lockVersion = null)
return;
}
+ /* TODO: What if the ID object has a field with the same name as the
+ * class' mapped identifier field name?
+ */
if (is_array($id)) {
list($identifierFieldName) = $this->class->getIdentifierFieldNames();

0 comments on commit 9f8de18

Please sign in to comment.