TableGateway con múltiples tablas FROM

Me gustaria hacer un sencilloINNER JOIN entre dos tablas en Zend2.

Concretamente, me gustaría hacer esto en Zend2:

SELECT * FROM foo, bar WHERE foo.foreign_id = bar.id;

tengo unFooTable:

class FooTable
{
  protected $tableGateway;

  public function __construct(TableGateway $tableGateway)
  {
    $this->tableGateway = $tableGateway;
  }

  public function get($id)
  {
    $rowset = $this->tableGateway->select(function (Select $select) {
      $select->from('foo');
    });
  }
}

los$select->from('foo'); devuelve un error:

==>Dado que este objeto se creó con una tabla y / o esquema en el constructor, es de solo lectura.

Por lo tanto, no puedo ajustar mi instrucción FROM para que coincida con una simple unión interna entreFooTable yBarTable.

Respuestas a la pregunta(1)

Su respuesta a la pregunta