Manager/AbstractManager.php
public function getOneEntityBy(array $criteria = [], array $orders = [], $offset = null): ?AbstractEntity
    {
        $entity = $this->getRepository()->findOneBy($criteria, $orders, $offset);

        if ($entity instanceof AbstractEntity) {
            $this->prepareEntityForGet($entity);
        }

        return $entity;
    }
public function getOneEntityBy(array $criteria = [], array $orders = [], $offset = null): ?AbstractEntity
    {
        $entity = $this->getRepository()->findOneBy($criteria, $orders, $offset);

        if ($entity instanceof AbstractEntity) {
            $this->prepareEntityForGet($entity);
        }

        return $entity;
    }
public function getOneEntityBy ( array $ criteria = [ ] , array $ orders = [ ] , $ offset = null ) : ? AbstractEntity { $ entity = $ this -> getRepository ( ) -> findOneBy ( $ criteria , $ orders , $ offset ) ; if ( $ entity instanceof AbstractEntity ) { $ this -> prepareEntityForGet ( $ entity ) ; } return $ entity ; }
Gets all entities matching a Criteria

@param array $criteria
@param array $orders
@param int   $offset

@return AbstractEntity
Gets all entities matching a Criteria