src/AbstractEntityService.php
public function findBy($criteria)
    {
        if (!$this->isRepositoryReadable()) {
            throw $this->createNotReadableException();
        }

        return $this->trigger(__FUNCTION__, [
            'criteria' => $criteria,
        ]);
    }
public function findBy($criteria)
    {
        if (!$this->isRepositoryReadable()) {
            throw $this->createNotReadableException();
        }

        return $this->trigger(__FUNCTION__, [
            'criteria' => $criteria,
        ]);
    }
public function findBy ( $ criteria ) { if ( ! $ this -> isRepositoryReadable ( ) ) { throw $ this -> createNotReadableException ( ) ; } return $ this -> trigger ( __FUNCTION__ , [ 'criteria' => $ criteria , ] ) ; }
Find one or more objects in the repository matching the criteria respecting the order, limit and offset

@param array|Criteria $criteria The array with criteria to search on.
@return array
@throws \Zend\EventManager\Exception\InvalidArgumentException
@throws \PolderKnowledge\EntityService\Exception\RuntimeException
Find one or more objects in the repository matching the criteria respecting the order limit and offset