public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias)
    {
        if (!$targetEntity->reflClass->implementsInterface(\WellCommerce\Bundle\LocaleBundle\Entity\LocaleAwareInterface::class)) {
            return "";
        }

        return $targetTableAlias . '.locale = ' . $this->getParameter('locale');
    }
public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias)
    {
        if (!$targetEntity->reflClass->implementsInterface(\WellCommerce\Bundle\LocaleBundle\Entity\LocaleAwareInterface::class)) {
            return "";
        }

        return $targetTableAlias . '.locale = ' . $this->getParameter('locale');
    }
public function addFilterConstraint ( ClassMetadata $ targetEntity , $ targetTableAlias ) { if ( ! $ targetEntity -> reflClass -> implementsInterface ( \ WellCommerce \ Bundle \ LocaleBundle \ Entity \ LocaleAwareInterface :: class ) ) { return "" ; } return $ targetTableAlias . '.locale = ' . $ this -> getParameter ( 'locale' ) ; }
Adds locale filter to query

@param ClassMetadata $targetEntity
@param string        $targetTableAlias

@return string
Adds locale filter to query