public function getModel($model)
    {
        $model = str_replace(':', '\\', $model);

        if (!class_exists($model)) {
            throw new ModelNotFoundException($model);
        }

        return new $model($this);
    }
public function getModel($model)
    {
        $model = str_replace(':', '\\', $model);

        if (!class_exists($model)) {
            throw new ModelNotFoundException($model);
        }

        return new $model($this);
    }
public function getModel ( $ model ) { $ model = str_replace ( ':' , '\\' , $ model ) ; if ( ! class_exists ( $ model ) ) { throw new ModelNotFoundException ( $ model ) ; } return new $ model ( $ this ) ; }
Get table repository object.

@param string $model
@return Model
@throws ModelNotFoundException
Get table repository object .