I'm migrating an app from ZF1 to ZF2 and found that I could previously grab
any Zend_Db_Table_Rowset object and by doing $row->getTable() I'd get a
reference to the implementation of Zend_Db_Table_Abstract that created it.
This is no longer the case in ZF2.

In my case this is very important since I don't know which kind of
RowGateway object I will be getting and need to react based on what
TableGateway object created it (I need to access some custom getters I
wrote on my TableGateway subclass).

TL;DR

// Zend\Db\TableGateway\Feature\RowGatewayFeature.php
// Line 64
$rowGatewayPrototype = new RowGateway($primaryKey,
$this->tableGateway->table, $this->tableGateway->adapter,
$this->tableGateway->sql);

Any reason why $this->tableGateway is not being passed to the RowGateway
object?

Thanks,
Julian.

Reply via email to