Skip to content

isCollection() method returning true for entities #19

Merged
merged 1 commit into from Jul 18, 2014

1 participant

@weierophinney
Zend Framework Campus member

As noted on the mailing list, the logic for determining whether to validate an incoming request as a collection or as an entity is currently broken.

The error appears to be on line 306; when the identifier is found in the route matches, we should be returning false.

@weierophinney weierophinney added this to the 1.0.4 milestone Jul 18, 2014
@weierophinney weierophinney added the bug label Jul 18, 2014
@weierophinney weierophinney [#19] Ensure entities are validated as entities, not collections
- When a route match is found for the identifier, then we have an
  entity, not a collection.
1261a05
@weierophinney weierophinney merged commit 1261a05 into zfcampus:master Jul 18, 2014

1 check passed

Details continuous-integration/travis-ci The Travis CI build passed
@weierophinney weierophinney deleted the weierophinney:hotfix/patch-collection-selection branch Jul 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.