src/Infakt/Infakt.php
public function getRepository(string $className): AbstractObjectRepository
    {
        $className = 'Infakt\\Repository\\'.substr($className, strrpos($className, '\\') + 1).'Repository';

        if (!class_exists($className)) {
            throw new LogicException("There is no repository to work with class $className.");
        }

        return new $className($this);
    }
public function getRepository(string $className): AbstractObjectRepository
    {
        $className = 'Infakt\\Repository\\'.substr($className, strrpos($className, '\\') + 1).'Repository';

        if (!class_exists($className)) {
            throw new LogicException("There is no repository to work with class $className.");
        }

        return new $className($this);
    }
public function getRepository ( string $ className ) : AbstractObjectRepository { $ className = 'Infakt\\Repository\\' . substr ( $ className , strrpos ( $ className , '\\' ) + 1 ) . 'Repository' ; if ( ! class_exists ( $ className ) ) { throw new LogicException ( "There is no repository to work with class $className." ) ; } return new $ className ( $ this ) ; }
Return object repository for a specific model class name.

@param $className

@throws LogicException

@return AbstractObjectRepository
Return object repository for a specific model class name .