Doctrine Findby Regex

$documentRepository->findBy(array(
    'foo' => new MongoRegex('/^bar/'),
));
Ugly Unicorn