diff --git a/src/Sylius/Bundle/ResourceBundle/spec/Sylius/Bundle/ResourceBundle/Doctrine/ORM/EntityRepository.php b/src/Sylius/Bundle/ResourceBundle/spec/Sylius/Bundle/ResourceBundle/Doctrine/ORM/EntityRepository.php
index <HASH>..<HASH> 100644
--- a/src/Sylius/Bundle/ResourceBundle/spec/Sylius/Bundle/ResourceBundle/Doctrine/ORM/EntityRepository.php
+++ b/src/Sylius/Bundle/ResourceBundle/spec/Sylius/Bundle/ResourceBundle/Doctrine/ORM/EntityRepository.php
@@ -109,7 +109,7 @@ class EntityRepository extends ObjectBehavior
     {
         foreach ($criteria as $property => $value) {
             $queryBuilder
-                ->andWhere('foo.'.$property.' = :'.$property)
+                ->andWhere('o.'.$property.' = :'.$property)
                 ->shouldBeCalled()
                 ->willReturn($queryBuilder)
             ;
Update spec, as we reverted the alias generation