Commit Graph

15 Commits

Author SHA1 Message Date
1dd22f618c ModelQuery: fix passing missing connection parameter 2020-09-04 15:10:11 +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
bffab3a4dc ModelQuery: actually fix fields conflicts for jointures
ref: 68ff977bcc
2020-09-02 16:29:11 +02:00
68ff977bcc ModelQuery: fix model instantiation field conflict for jointures 2020-09-02 11:56:09 +02:00
9db09f83cb Fix ManyThroughModelRelation eagerloading 2020-08-30 18:56:27 +02:00
28349b791e Fix ModelQuery.count() 2020-08-30 13:31:19 +02:00
813e10c4c7 ModelQuery: fix array of values to string conversion 2020-08-28 15:40:58 +02:00
5930a85617 mysql count(): optimize requested fields 2020-08-26 14:05:06 +02:00
37ed42b37d Fix model queries values not matching placeholder count 2020-07-28 15:02:08 +02:00
97b2d3b94c ModelQuery: throw an error when fed with nonexistent relation 2020-07-28 10:33:45 +02:00
8746ad2ea3 ModelQuery: fix is null / is not null checks 2020-07-27 10:56:43 +02:00
be6e659ca2 ModelFactory: refactor make into create 2020-07-27 10:52:39 +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