public function searchForDomain($domainSearchParam)
    {
        $domainsQueryBuilder = $this->createQueryBuilder('domain');
        $domainsQueryBuilder->where('domain.domain LIKE :domainSearchParam');

        $query = $domainsQueryBuilder->getQuery();
        $query->setParameter('domainSearchParam', $domainSearchParam);

        return $query->getResult();
    }
public function searchForDomain($domainSearchParam)
    {
        $domainsQueryBuilder = $this->createQueryBuilder('domain');
        $domainsQueryBuilder->where('domain.domain LIKE :domainSearchParam');

        $query = $domainsQueryBuilder->getQuery();
        $query->setParameter('domainSearchParam', $domainSearchParam);

        return $query->getResult();
    }
public function searchForDomain ( $ domainSearchParam ) { $ domainsQueryBuilder = $ this -> createQueryBuilder ( 'domain' ) ; $ domainsQueryBuilder -> where ( 'domain.domain LIKE :domainSearchParam' ) ; $ query = $ domainsQueryBuilder -> getQuery ( ) ; $ query -> setParameter ( 'domainSearchParam' , $ domainSearchParam ) ; return $ query -> getResult ( ) ; }
Search for a domain name by query string.

@param string $domainSearchParam Query String... ie. "domain LIKE '[queryString]"

@return array
Search for a domain name by query string .