Skip to content

v0.2

Compare
Choose a tag to compare
@micheleangioni micheleangioni released this 10 May 15:01
· 28 commits to master since this release

New requirements:

  • PHP 7.0+
  • Phalcon 3.0+

New features and changes:

  • Added new getInAndWhereByPage() method

  • The $where array parameter now allows for more complex queries.
    The following formats are now supported:

    • 'key' => 'value'

    Examples:

    $where = ['username' => 'Richard']
    • 'key' => ['value', 'operator']

    Examples:

    $where = ['age' => [30, '=']]
    $where = ['age' => [30, '<']]
    $where = ['age' => [30, '>']]
    $where = ['username' => ['%Fey%', 'LIKE']]
    • ['key1%OR%key2'] => ['value', 'operator']

    Examples:

    `$where = ['username%OR%description' => ['%Feynman%', 'LIKE']]`
  • Method parameters are now type hinted