public function findPublishedItems(
    array $where,
        $orderBy = null,
        $limit = null
    )
    {
        return $this->repository->findBy(array_merge($where, ['published' => true]), $orderBy, $limit);
    }
public function findPublishedItems(
    array $where,
        $orderBy = null,
        $limit = null
    )
    {
        return $this->repository->findBy(array_merge($where, ['published' => true]), $orderBy, $limit);
    }
public function findPublishedItems ( array $ where , $ orderBy = null , $ limit = null ) { return $ this -> repository -> findBy ( array_merge ( $ where , [ 'published' => true ] ) , $ orderBy , $ limit ) ; }
Method which finds published items in the repository according to the where clause
@param array $where
@param array $orderBy
@param int $limit
@return array
Method which finds published items in the repository according to the where clause