Doctrine/Repository/EnabledFilterTrait.php
public function addFilterEnabledClause(QueryBuilder $qb)
    {
        if ($this->_filterEnabled) {
            $qb
                ->andWhere($qb->expr()->eq($qb->getRootAliases()[0].'.enabled', ':enabled'))
                ->setParameter('enabled', true)
            ;
        }
    }
public function addFilterEnabledClause(QueryBuilder $qb)
    {
        if ($this->_filterEnabled) {
            $qb
                ->andWhere($qb->expr()->eq($qb->getRootAliases()[0].'.enabled', ':enabled'))
                ->setParameter('enabled', true)
            ;
        }
    }
Configures the query builder.

@param QueryBuilder $qb