final public function aggregateWithRepository(Repository $repository, SqlStatement $sqlStatement, Collection $collection, &$namedParams)
    {
        $specificAggregate = $repository->getRepositorySpecificAggregate($this);

        if ($specificAggregate) {
            $specificAggregate->calculateByRepository($repository, $sqlStatement, $collection, $namedParams);

            if ($specificAggregate->calculated) {
                $this->calculated = true;

                $collection->additionalColumns[$specificAggregate->getAlias()] = [
                    "column" => new StringColumn($specificAggregate->getAlias(), 50),
                    "collection" => $collection
                ];
            }
        }
    }