chg: [galaxies] slightly saner lookup

pull/8568/head
iglocska 2022-08-22 16:24:55 +02:00
parent 0d6d3cb980
commit b1d5b8baff
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 3 additions and 2 deletions

View File

@ -437,10 +437,11 @@ class GalaxiesController extends AppController
)), 'GalaxyCluster');
$synonyms = $this->Galaxy->GalaxyCluster->GalaxyElement->find('all', array(
'conditions' => array(
'GalaxyElement.galaxy_cluster_id' => array_column($data, 'id'),
'GalaxyElement.key' => 'synonyms'
'GalaxyElement.key' => 'synonyms',
$conditions
),
'fields' => ['GalaxyElement.galaxy_cluster_id', 'GalaxyElement.value'],
'contain' => 'GalaxyCluster',
'recursive' => -1
));
$sortedSynonyms = array();