Manager/AbstractManager.php
public function getById($id): ?AbstractEntity
    {
        $entity = $this->getRepository()->findById($id);

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

        return $entity;
    }
public function getById($id): ?AbstractEntity
    {
        $entity = $this->getRepository()->findById($id);

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

        return $entity;
    }
public function getById ( $ id ) : ? AbstractEntity { $ entity = $ this -> getRepository ( ) -> findById ( $ id ) ; if ( $ entity instanceof AbstractEntity ) { $ this -> prepareEntityForGet ( $ entity ) ; } return $ entity ; }
Gets an entity by its ids

@param integer $id

@return AbstractEntity
Gets an entity by its ids