Skip to content

Commit

Permalink
♻️ Split the Criteria class into Criteria.Criteria and `Criteria.…
Browse files Browse the repository at this point in the history
…Model` classes
  • Loading branch information
skerit committed Feb 8, 2024
1 parent 29620e5 commit 2ebdabb
Show file tree
Hide file tree
Showing 9 changed files with 2,364 additions and 2,312 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* Don't cast empty strings to `0` values in numeric `Field` types
* Add `Field#is_nullable` option property
* `Field#cast()` should now handle null checks
* Split the `Criteria` class into `Criteria.Criteria` and `Criteria.Model` classes

## 1.3.22 (2023-12-21)

Expand Down
4 changes: 2 additions & 2 deletions lib/app/helper_component/paginate_component.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Paginate = Function.inherits('Alchemy.Client.Component', 'Paginate');
*
* @author Jelle De Loecker <[email protected]>
* @since 0.0.1
* @version 1.3.4
* @version 1.4.0
*
* @param {Model} model
* @param {Criteria} criteria
Expand All @@ -31,7 +31,7 @@ Paginate.setMethod(function find(model, criteria) {
model = this.getModel(model);
}

criteria = Blast.Classes.Alchemy.Criteria.Criteria.cast(criteria, model);
criteria = Classes.Alchemy.Criteria.Model.cast(criteria, model);

let page_size = criteria.options.page_size || 10,
skipless = criteria.options.skipless,
Expand Down
Loading

0 comments on commit 2ebdabb

Please sign in to comment.