Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

add getter method for object prototype to Zend\Db\ResultSet\HydratingResultSet #7314

Closed
wants to merge 4 commits into from

Conversation

k8ns
Copy link
Contributor

@k8ns k8ns commented Mar 11, 2015

add getter method for object prototype to Zend\Db\ResultSet\HydratingResultSet

It needs for Table which have injected TableGateway to create factory method that will return new Entity:
public function getNew()
{
return clone $this->tableGateway->getResultSetPrototype()->getObjectPrototype();
}

@weierophinney
Copy link
Member

Sounds good; can you add a unit test, please? (You have until Thursday, 19 March 2015, if you want to get this into 2.4.)

@k8ns
Copy link
Contributor Author

k8ns commented Mar 18, 2015

Unit test has been added

weierophinney added a commit that referenced this pull request Mar 18, 2015
add getter method for object prototype to Zend\Db\ResultSet\HydratingResultSet
weierophinney added a commit that referenced this pull request Mar 18, 2015
@weierophinney
Copy link
Member

Merged to develop for release with 2.4.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants