Skip to content

v0.3

Compare
Choose a tag to compare
@micheleangioni micheleangioni released this 07 Jul 15:59
· 19 commits to master since this release

New requirements:

  • PHP 7.1+
  • Phalcon 3.2+
  • Phalcon Incubator 3.2+

New features and changes:

  • Added brand new AbstractCollectionRepository supporting MongoDB. Method list:

    • all()
    • find($id)
    • findOrFail($id)
    • first()
    • firstOrFail()
    • firstBy(array $where = [])
    • firstOrFailBy(array $where = [])
    • getBy(array $where = [])
    • getByLimit(int $limit, array $where = [])
    • getByOrder(string $orderBy, array $where = [], string $order = 'desc', int $limit = 0)
    • getIn(string $whereInKey, array $whereIn = [], string $orderBy = null, string $order = 'desc', int $limit = 0)
    • getNotIn(string $whereNotInKey, array $whereNotIn = [], string $orderBy = null, string $order = 'desc', int $limit = 0)
    • getInAndWhereByPage(int $page = 1, int $limit = 10, string $whereInKey = null, array $whereIn = [], $where = [], $orderBy = null, string $order = 'desc')
    • getByPage(int $page = 1, int $limit = 10, array $where = [], string $orderBy = null, string $order = 'desc')
    • create(array $inputs = [])
    • updateById($id, array $inputs)
    • destroy($id)
    • destroyFirstBy(array $where)
    • count()
    • countBy(array $where = [])