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

Test for the getArrayCopy method in AbstractRestultSet #5089

Merged
merged 1 commit into from
Sep 9, 2013

Conversation

akrabat
Copy link
Contributor

@akrabat akrabat commented Sep 8, 2013

If you're using the ArraySerializable hydrator, then you will have a method called getArrayCopy in your row object, However, AbstractResultSet::toArray() currently checks that your row is an instance of ArrayObject and hence throws an exception.

This PR changes AbstractResultSet::toArray() to check for the method name instead, to match the way that ArraySerializable::extract() handles this.

If you're using the `ArraySerializable` hydrator, then you will have a
method called `getArrayCopy` in your row object, so allow
`AbstractResultSet` to use it.
weierophinney added a commit that referenced this pull request Sep 9, 2013
Test for the getArrayCopy method in AbstractRestultSet
weierophinney added a commit that referenced this pull request Sep 9, 2013
@ghost ghost assigned weierophinney Sep 9, 2013
@weierophinney weierophinney merged commit 360bbdc into zendframework:develop Sep 9, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants