b8dd1fd0f6
refactor(model): remove default 'id' from dbIgnoreSave list
2026-06-19 16:08:29 -03:00
83c80bd4ab
fix(model): prevent overwriting primary key on save
2026-06-19 15:34:47 -03:00
b13c07d3c4
fix(model): Remove the NULL check in the attribute loop
2026-06-19 15:29:51 -03:00
b95747bfe0
feat(model): add type casting for DateTime
2026-06-19 15:14:25 -03:00
01c5eceeb4
refactor(model): Use match expression for PDO type detection
2026-06-19 14:52:25 -03:00
ee9c109ed9
fix(model): improve PDO parameter binding and update logic
2026-06-19 14:47:01 -03:00
7eed69725d
refactor(model): extract type casting logic into helper methods
2026-06-19 14:46:30 -03:00
e37035eed8
fix(model): support both backed and unit enums
2026-06-13 16:48:07 -03:00
5312e5060e
fix(model): reset dbQueryVariables before update and insert
...
Clear the static $dbQueryVariables array before performing update
and insert operations to prevent data leakage between queries.
2026-06-13 15:30:45 -03:00
3770dd6d9b
refactor(model): Track model persistence state
2026-03-11 18:48:32 -03:00
76a69e5ef8
refactor(Model): Standarize property names
2026-03-11 18:22:16 -03:00
ce03bdb27d
fix(model): Fix postgresql search.
2025-10-27 15:16:54 -03:00
b24598b118
fix(sqlite): Correct base table for RIGHT JOIN conversion
2025-10-27 15:15:45 -03:00
d030e8d30e
refactor(model)!: Allow groupBy to accept multiple args instead an array
2025-10-27 10:26:12 -03:00
b2672ad92f
fix(model): Remove ON clause from cross join
2025-10-27 10:24:25 -03:00
4c57770b43
refactor(model): Remove backticks from column names
2025-10-27 10:23:55 -03:00
8e84450f95
fix(query): Adjust LIMIT OFFSET clause syntax
2025-10-27 10:23:31 -03:00
a5cf9d239d
refactor(model): Fix typo on WHERE EXISTS/NOT EXISTS methods
2025-10-27 06:46:17 -03:00
b9509c49ed
refactor(model): Add string type hint to select columns
2025-10-21 16:26:39 -03:00
6e433b4d06
feat(query-builder): Implement advanced WHERE and new JOIN clauses
2025-10-17 13:13:01 -03:00
892b3614ec
refactor(db): Detect DB type using PDO driver name
2025-10-17 13:12:02 -03:00
a0b544eae5
refactor(Model): Rename bindValue to bind and make public
2025-10-17 11:55:37 -03:00
7f62e06ff9
docs: Improve documentation and translate comments to English
2025-10-10 21:18:22 -03:00
2f50532e13
refactor(Model): Type hint setNull variadic arguments
2025-10-10 21:06:11 -03:00
b19e7d8789
Remove a forgotten debug line.
2025-09-07 18:52:33 -03:00
4dfdb52519
Remove unnecessary and really never-used tableSufix property.
2025-09-07 15:25:48 -03:00
b0891885f9
BREAKING CHANGE: Make select, from, and setNull methods variadic.
2025-09-07 15:20:06 -03:00
b282d5479f
Convert object/database naming conventions.
...
Adhere to PSR-12 by converting object properties to "lowerCamelCase" for objects
and "snake_case" for database interactions.
Backward compatibility is maintained: object properties already using
"snake_case" will continue to work without issue.
2025-09-07 15:01:45 -03:00
c9f467345b
BREAKING CHANGE: Adhere to PSR-12 coding standards.
...
- Model: where_in method was renamed as whereIn.
2025-09-07 11:07:07 -03:00
0f46848d15
Remove the predefined 'id' property.
...
This property is not necessary and gives less flexibility.
2025-08-15 14:51:16 -03:00
b2cb8d6883
Allow statically call beginTransaction, rollback and commit methods.
2025-07-15 18:12:41 -03:00
e9126e7cde
Fix: Implicitly marking parameter as nullable is deprecated.
...
PHP 8.4 deprecation.
2025-06-07 14:27:47 -03:00
c8ab2aa2cc
Remove unnecesary echo.
2025-05-20 12:49:20 -03:00
d441f001ec
Add type of items on array on dockblock for "all" method.
2025-02-03 16:04:39 -03:00
19da122e05
Add type of items on array on dockblock for get method.
2025-02-03 16:02:27 -03:00
6aef212350
Fix className not returning the classname in the right format.
2024-10-25 10:40:57 -04:00
c600688725
Improve return array dockblocks.
2024-09-23 18:09:38 -04:00
3e27b1b7af
Allow null on enum properties.
2024-09-23 15:06:44 -04:00
3d2a607768
Fix where_in is wiping previous where/and/or.
...
For now, works as an AND, but maybe later, same as where will exists
new methods: AndIn and OrIN.
2024-08-30 16:26:03 -04:00
df424ffab5
Model properties now can be typed as enums.
...
With this PHP 8.0 support is dropped.
2024-08-27 19:01:02 -04:00
05cd83fd10
Remove unused variable.
2024-07-31 03:29:49 -04:00
7beb161d2b
Ensure db is in transaction to commit or rollback.
2024-06-04 07:18:30 -04:00
cd1685d2e7
fix on a docblock.
2024-05-21 15:06:02 -04:00
27b5ed6015
Convert model name from PascalCase to snake_case (table name).
2024-05-12 04:38:45 -04:00
f9b2c678f7
Support multiple databases at same time.
2024-05-12 03:47:09 -04:00
f5f803dde2
Reorganize code for PSR and others code prettify.
2024-05-09 15:13:52 -04:00
d48f24ed98
Improve return types.
2023-04-22 05:32:37 -04:00
b326c8e1d0
Fix mising use.
2023-04-16 23:47:49 -04:00
1267d6b2f6
Fix deprecation warnings on PHP8.2
2023-04-15 13:17:00 -04:00
06b7907f7c
Define mixed type to param $id on getById method.
2023-03-25 21:28:25 -04:00