Or
```php
->andWhere($this->getAlias().'.state = :state')
->setParameter('state', OrderInterface::STATE_PENDING)
```