Nextras\Orm\Model\Model::__get PHP Method

__get() public method

Returns repository by name.
public __get ( string $name ) : Nextras\Orm\Repository\IRepository
$name string
return Nextras\Orm\Repository\IRepository
    public function &__get($name)
    {
        $repository = $this->getRepositoryByName($name);
        return $repository;
    }