<?phpdeclare(strict_types=1);namespace App\Repository\Configurator;use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository;final class FontColorRepository extends EntityRepository{ public function findByPhrase(string $phrase): array { return $this->createQueryBuilder('f') ->leftJoin('f.translations', 'translation') ->andWhere('translation.metaTitle LIKE :phrase') ->setParameter('phrase', '%' . $phrase . '%') ->getQuery() ->getResult() ; }}