Skip to content

Commit

Permalink
カスタムエントリー一覧でテーブル情報が取得できない問題を改善
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Sep 26, 2023
1 parent 4edf8cd commit 9404ade
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ public function getIndex(array $queryParams = [])
->select($this->createSelect($options))
->contain($options['contain']);

if(array_key_exists('CustomTables', $options['contain']) || in_array('CustomTables', $options['contain'])) {
$query->select($this->CustomEntries->CustomTables);
}

if ($options['order']) {
$query->order($this->createOrder($options['order'], $options['direction']));
}
Expand Down

0 comments on commit 9404ade

Please sign in to comment.