Skip to content

Prevent colliding internal cache ids based on adapter #2

Closed
@weierophinney

Description

@weierophinney

Resolves #41
json_encode($this->getAdapter()) would always return an empty object for \Zend\Paginator\Adapter\DbSelect adapters (i.e. {}). By performing print_r on the adapter we can get the current state which, in the case of DbSelect, includes an sql object containing table name, join details, where clause, etc.
This change will prevent collisions between adapters that do not have any public properties and/or values.


Originally posted by @richard-parnaby-king at zendframework/zend-paginator#42

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingDuplicateThis issue or pull request already existsUnit Test Needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions