Newscoop\Entity\Repository\Comment\AcceptanceRepository::matched PHP Méthode

matched() public méthode

public matched ( array $p_params )
$p_params array
    public function matched(array $p_params)
    {
        // this is for simple match if all search_type are normal
        // @todo implement later regex
        $p_params = $this->setEntity($p_params);
        $results = $this->findBy($p_params);
        if (count($results) > 0) {
            return true;
        }
        return false;
    }