doctrina findby regex

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