private function seoTitleIsUnique($id,
        string $generatedAlias,
        string $aliasColumn = 'seoTitle'): bool
    {
        $alias = Strings::webalize($generatedAlias);
        if ($id === null) {
            $results = $this->repository->findBy([$aliasColumn => $alias]);
        } else {
            $results = $this->repository->findBy([$aliasColumn => $alias, 'id !=' => $id]);
        }
        return count($results) === 0;
    }
private function seoTitleIsUnique($id,
        string $generatedAlias,
        string $aliasColumn = 'seoTitle'): bool
    {
        $alias = Strings::webalize($generatedAlias);
        if ($id === null) {
            $results = $this->repository->findBy([$aliasColumn => $alias]);
        } else {
            $results = $this->repository->findBy([$aliasColumn => $alias, 'id !=' => $id]);
        }
        return count($results) === 0;
    }
private function seoTitleIsUnique ( $ id , string $ generatedAlias , string $ aliasColumn = 'seoTitle' ) : bool { $ alias = Strings :: webalize ( $ generatedAlias ) ; if ( $ id === null ) { $ results = $ this -> repository -> findBy ( [ $ aliasColumn => $ alias ] ) ; } else { $ results = $ this -> repository -> findBy ( [ $ aliasColumn => $ alias , 'id !=' => $ id ] ) ; } return count ( $ results ) === 0 ; }
Checks if seo title is unique.
@param int|NULL $id
@param string $generatedAlias
@param string $aliasColumn
@return boolean
Checks if seo title is unique .