最初と 2 番目のテーブルからフィールドを選択する zf2 を使用して単純な結合を実行したいのですが、フィールドの配列を列メソッドに入れようとするとエラー (「ステートメントを実行できませんでした」) が発生します。
public function fetchAll()
{
$resultSet = $this->tableGateway->select(function (Select $select) {
$select->columns();// ->with params gives an 'Statement could not be executed'
$select->join(array('t2' => 'categories'), 'table1.idCategory = t2.id');
$select->order('dateTime DESC')->limit(100);
});
...
}