КГ
->leftJoin($alias.'.ClientSex','sex')
->leftJoin($alias . '.Comment', 'c')
->addSelect('с')
->addSelect('avg(c.stars) as Stars')
->addSelect('sex')
->addGroupBy($alias . '.id')
;
И в итоге получаю вот такой результат
Size: a a a
КГ
gp
ВН
MW
ВН
АМ
АМ
АМ
ВН
АМ
ВН
АМ
$result = $query->getQuery()->getResult(\Doctrine\ORM\AbstractQuery::HYDRATE_ARRAY);
ВУ
A
- Installing symfony-bundles/json-request-bundle (v2.0.1): Downloading (connecting...) Downloading (0%) Downloading (failed) Failed to download symfony-bundles/json-request-bundle from dist: The "https://api.github.com/repos/symfony-bundles/json-request-bundle/zipball/ebf0121609d4b449dd2cc52d39074312734e31dc" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
- Installing symfony-bundles/json-request-bundle (v2.0.1): Cloning ebf0121609
[RuntimeException]
Failed to clone https://github.com/symfony-bundles/json-request-bundle.git via https, ssh protocols, aborting.
- https://github.com/symfony-bundles/json-request-bundle.git
Cloning into '/builds/ruskontur/backend/vendor/symfony-bundles/json-request-bundle'...
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/symfony-bundles/json-request-bundle.git/'
- git@github.com:symfony-bundles/json-request-bundle.git
Cloning into '/builds/ruskontur/backend/vendor/symfony-bundles/json-request-bundle'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
ВМ
- Installing symfony-bundles/json-request-bundle (v2.0.1): Downloading (connecting...) Downloading (0%) Downloading (failed) Failed to download symfony-bundles/json-request-bundle from dist: The "https://api.github.com/repos/symfony-bundles/json-request-bundle/zipball/ebf0121609d4b449dd2cc52d39074312734e31dc" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
- Installing symfony-bundles/json-request-bundle (v2.0.1): Cloning ebf0121609
[RuntimeException]
Failed to clone https://github.com/symfony-bundles/json-request-bundle.git via https, ssh protocols, aborting.
- https://github.com/symfony-bundles/json-request-bundle.git
Cloning into '/builds/ruskontur/backend/vendor/symfony-bundles/json-request-bundle'...
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/symfony-bundles/json-request-bundle.git/'
- git@github.com:symfony-bundles/json-request-bundle.git
Cloning into '/builds/ruskontur/backend/vendor/symfony-bundles/json-request-bundle'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
ВМ