Nextras\Orm\Model\Model::getRepository PHP Method

getRepository() public method

public getRepository ( $className )
    public function getRepository($className)
    {
        if (!isset($this->configuration[0][$className])) {
            throw new InvalidArgumentException("Repository '{$className}' does not exist.");
        }
        return $this->loader->getRepository($className);
    }