|
595a6d4066
|
ModelQuery: add create() and fix boolean serialization
|
2020-10-02 12:08:01 +02:00 |
|
|
79d704083a
|
Add many eslint rules and fix all linting issues
|
2020-09-28 14:15:22 +02:00 |
|
|
b736f5f6cb
|
Improve middleware definition and cleanup code
|
2020-09-25 22:15:57 +02:00 |
|
|
3a473dd24e
|
Fix error when saving models in transaction when it needs a full update
|
2020-09-15 15:40:58 +02:00 |
|
|
c2abb1c87a
|
Model.select(): allow custom select fields
|
2020-09-06 15:09:58 +02:00 |
|
|
25f890e082
|
Remove unnecessary db query to determine whether a model exists in db
|
2020-09-06 10:45:26 +02:00 |
|
|
f07704c6dc
|
Allow Model classes to override primary key fields
|
2020-09-06 10:23:32 +02:00 |
|
|
f6b326f802
|
Move EMAIL_REGEXP to Validator
|
2020-09-06 10:21:47 +02:00 |
|
|
e403dfa863
|
ModelQuery: fix field disambiguation
|
2020-09-05 15:51:44 +02:00 |
|
|
19aafc76bf
|
mysql queries: wrap field names in "`" to avoid conflict with reserved words
also do not add table name to field in select if it is already present
|
2020-09-04 15:09:30 +02:00 |
|
|
74ffdf8325
|
Model: add equals method
|
2020-09-02 14:07:40 +02:00 |
|
|
fed54b9483
|
Fix access level of Model.autoFill()
|
2020-08-28 15:40:18 +02:00 |
|
|
5bcc63a62c
|
Models: add automatic created_at property value
|
2020-08-28 14:16:25 +02:00 |
|
|
f47f01f147
|
Models: add autoFill method for asynchronous default value load
|
2020-08-28 14:16:06 +02:00 |
|
|
72c4f972a0
|
Cache model existence to support insert + update in the same transaction
|
2020-08-26 14:18:02 +02:00 |
|
|
76811dd0b8
|
Add more tests for Model
|
2020-08-05 10:45:13 +02:00 |
|
|
51addd947b
|
Model: fix getById
|
2020-07-27 10:54:08 +02:00 |
|
|
5ca1ddef43
|
Move responsability of table field from ModelFactory to Model (static)
|
2020-07-27 10:53:46 +02:00 |
|
|
be6e659ca2
|
ModelFactory: refactor make into create
|
2020-07-27 10:52:39 +02:00 |
|
|
21b7def9e4
|
Fix some model refactor usages
|
2020-07-26 11:37:01 +02:00 |
|
|
c0dd48d064
|
Fix missing fields by default and fix model construction flow
|
2020-07-24 15:40:40 +02:00 |
|
|
7f398c1d4e
|
Make models extendable
|
2020-07-24 12:58:06 +02:00 |
|
|
b043513fe8
|
Bug fixes and app settings
|
2020-06-27 17:12:50 +02:00 |
|
|
ec5b2b9aa0
|
Revamp model system
- Add model relations
- Get rid of SQL_CALC_FOUND_ROWS (deprecated)
- Eager loading
|
2020-06-27 14:45:05 +02:00 |
|
|
fa42b8991b
|
Add query customization to model pagination
|
2020-06-14 21:47:51 +02:00 |
|
|
0970ff3116
|
Make model primaryKey dynamic (allows for composite primary keys)
|
2020-06-04 14:59:41 +02:00 |
|
|
662d12df68
|
Add sources
|
2020-04-22 17:49:58 +02:00 |
|