public function byRepo(Closure $yield)
    {
        $repos = Objects::groupBy($this->models, function (AbstractModel $model) {
            return $model->getRepo()->getRootRepo();
        });

        foreach ($repos as $repo) {
            $models = new Models();
            $models->addObjects($repos->getInfo());

            $yield($repo, $models);
        }
    }