3

configureListFields 内で、追加のクエリを実行して現在の行に関連するデータを取得したいのですが、そのための参照値にアクセスする方法がわかりません。

これが私が現在持っているものですが、値にアクセスするために現在使用しているものは機能しません:

protected function configureListFields(ListMapper $listMapper)
{
    $historicalCommissions = $this
        ->getConfigurationPool()
        ->getContainer()
        ->get('doctrine')
        ->getRepository('MyBundle:MyEntity')
        ->findBy(['card_id' => $listMapper->get('card_id')]);

    $listMapper
        ->addIdentifier('id')
        ->add('field')
        ->add('field')
        ->add('historical_commissions', ...);
}

最初の考えは、createQuery() で親クエリを変更することですが、私が探しているのは、追加のクエリで複数の値のリストであり、教義には mysql の GROUP_CONCAT のようなものの実装がありません (私は承知しています)。

提案?

4

0 に答える 0