Skip to content

Pass $data in fetchAll() to the TableGatewayPaginator #73

@michalbundyra

Description

@michalbundyra

Per the mailing list, it may make sense to pass the $data argument of DbConnectedResource::fetchAll() to the TableGatewayPaginator (as the second argument, forming the $where clause).

However...

It may also make sense to map query string parameters to the clause they should be used in. Zend\Paginator\Adapter\DbTableGateway has the following arguments:

  • $tableGateway - already being passed, for obvious reasons.
  • $where - to create the WHERE clause
  • $order - to sort the returned values
  • $group - for GROUP BY clauses
  • $having - for HAVING clauses

Each of the latter four can take an associative array of arguments.

As such, this feature should likely not pass $data directly, but instead map parameters to arguments... which means a related UI feature.


Originally posted by @weierophinney at zfcampus/zf-apigility#29

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions