Permalink
Browse files

Updated to MongoDB ODM usage.

  • Loading branch information...
kriswallsmith authored and jmikola committed Dec 10, 2010
1 parent 1a570ad commit a63446ec33f1c539f83ff0e140ad626fe93dbf66
Showing with 3 additions and 1 deletion.
  1. +3 −1 Adapter/Doctrine/ODM/MongoDBAdapter.php
@@ -63,6 +63,8 @@ public function __construct(ContainerInterface $container, array $options)
*/
public function getUserByPrincipal($principal)
{
- return $this->documentManager->findOne($this->documentName, array($this->principalField => $principal));
+ return $this->documentManager->getRepository($this->documentName)->findOneBy(array(
+ $this->principalField => $principal,
+ ));
}
}

0 comments on commit a63446e

Please sign in to comment.