Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rewrite model (MyModel and MyCRUD) #285

Merged
merged 26 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a3b28ac
refactor: rewrite model
SonyPradana Feb 18, 2024
9d8a2f1
refator: remove final
SonyPradana Feb 18, 2024
9487bd0
test: add base test case for database testing
SonyPradana Feb 18, 2024
723b91c
test: add TDD
SonyPradana Feb 18, 2024
a86f5ad
feat: add `Model:insert`
SonyPradana Feb 19, 2024
8da79e2
refactor: constructor parameter order
SonyPradana Feb 19, 2024
45dd40a
feat: add `Model::firstColumn`
SonyPradana Feb 20, 2024
97262b4
refactor: use where condition in `hasOne` `hasMany`
SonyPradana Feb 21, 2024
c10e929
refactor: `Model::getter` get from first column
SonyPradana Feb 22, 2024
3c7a6de
feat: Model support array access
SonyPradana Feb 22, 2024
a1fbe43
feat: add `Model::find`, `Model::where`
SonyPradana Feb 23, 2024
b81b0b6
refactor: use `Where::class` to indenty
SonyPradana Feb 24, 2024
01b14fb
refactor: normalize `Select::class`
SonyPradana Feb 24, 2024
c4328e1
formatting: fix phpstan type
SonyPradana Feb 25, 2024
be435c9
refactor: `Collection` model child (indentifer)
SonyPradana Feb 25, 2024
448489b
feat: add `Model::equal` find using equal
SonyPradana Feb 25, 2024
abe3ea5
fix: miss `===` in Bitwise Operators
SonyPradana Feb 25, 2024
4914259
test: multy rows model test
SonyPradana Feb 27, 2024
8d4061c
refactor, feat: upstream update and delete
SonyPradana Feb 27, 2024
ce5b2fb
refactor: rename class
SonyPradana Feb 27, 2024
1b73981
formatting: phpstan
SonyPradana Feb 27, 2024
9d580b8
feat: add costume sort order, limit and offset
SonyPradana Feb 28, 2024
e522037
doc: give every method commen
SonyPradana Feb 28, 2024
be75022
refactor: remove generic type for `Model`
SonyPradana Feb 29, 2024
5a61a0f
refactor: support string-class model in `hasOne` and `hasMany`
SonyPradana Mar 3, 2024
9d05992
doc: change doc
SonyPradana Mar 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
},
"autoload-dev": {
"files": [
"tests/DataBase/BaseConnection.php",
"tests/DataBase/QueryStringTest.php",
"tests/DataBase/RealDatabaseConnectionTest.php"
]
Expand Down
Loading
Loading