我有以下查询:
$query = $qb->select('DISTINCT s')
->from("MainBundle:Shop", 's')
->andWhere('SOUNDEX(s.fullname) = SOUNDEX(:shopName)');
$parameter["shopName"] = $searchquery;
$query->setParameters($parameter);
$query = $qb->select('DISTINCT s')
->from("MainBundle:Shop", 's')
->andWhere($qb->expr()->like('s.fullname', $qb->expr()->literal('%' . $searchquery . '%')));
是否有可能将这两个查询合并为一个?