v0.2
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