Skip to content

Commit

Permalink
Fix for the prototype setting in Zend\Db\RowGateway\RowGateway
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Schindler committed Mar 2, 2012
1 parent 0b61dfa commit cf8f370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Db/RowGateway/RowGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class RowGateway implements RowGatewayInterface, RowObjectInterface
public function __construct(TableGateway $tableGateway, $primaryKey)
{
$this->tableGateway = clone $tableGateway;
$this->tableGateway->getSelectResultPrototype()->setReturnType(new Row());
$this->tableGateway->getSelectResultPrototype()->setRowObjectPrototype(new Row());
$this->primaryKey = $primaryKey;
}

Expand Down

0 comments on commit cf8f370

Please sign in to comment.