-
-
Notifications
You must be signed in to change notification settings - Fork 141
feat(database)!: improve orm experience #1458
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
Merged
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
6074d8a
feat(database): add more convenient `where` methods and support group…
innocenzi b033b39
fix(database): handle boolean serialization based on database dialect
innocenzi 716e95a
feat(database): add `toRawSql` to query builders
innocenzi a403a06
test(core): accept stringable in `assertSameWithoutBackticks`
innocenzi 352faed
test(database): ignore expected phpstan false positive
innocenzi 31cf73f
refactor(database): put fixture in individual test files
innocenzi 54323cc
refactor(database): rename `model` to `inspect`
innocenzi 37017fa
feat(database): extract `IsDatabaseModel` in a model query builder
innocenzi 605c74f
refactor(database): support custom primary keys and enforce their pre…
innocenzi c47178e
refactor(database): rename `Id` to `PrimaryKey` and extract it from `…
innocenzi 1f35fac
feat(database): support custom primary keys when loading relationships
innocenzi bc2d7db
feat(database): add inline documentation on query builders
innocenzi c860de0
feat(database): add `orderBy` with field and direction support
innocenzi 1692ef1
test(database): remove redundant assertions
innocenzi c198a2d
test(database): move legacy orm tests in database tests
innocenzi e1f4d2e
refactor(database): use consistent template naming in query builders
innocenzi fe9c966
feat(database): add `object` alias to `json` and `dto`
innocenzi 99eb916
feat(database): add a standalone `foreignKey` method when creating ta…
innocenzi b73511c
feat(database): support nested data transfer object casting and seria…
innocenzi 3c60c7d
refactor(database): improve typings on query builders
innocenzi ffb427d
refactor(mapper): clean up dto caster and serializer
innocenzi a2e184e
test(database): improve dto serialization coverage
innocenzi 2058ecb
fix(database): implement `DatabaseException` on primary column except…
innocenzi 4ddf13b
refactor(mapper): clean up array to object mapper
innocenzi 4c3ac88
refactor(database): handle more primary key cases
innocenzi 810ea9d
test(database): use proper relation on test model
innocenzi 22dd611
feat(database): support inserting and updating relationships
innocenzi 0176f66
fix(database): handle object serialization using `insert`
innocenzi 27ff95e
fix(database): support insertion of relations using `create` on models
innocenzi bb68c86
fix(database): support dto serialization on model builder update
innocenzi 9c21f77
test(datetime): reduce flakiness of time sensitive test
innocenzi 837e931
feat(database): add `foreignId` alias to `belongsTo`
innocenzi 500fc89
refactor(database): remove `resolve` query builder method
innocenzi 0d34a2f
refactor(database): clean up pkey resolution
innocenzi 9ecf8ec
refactor(database): remove more `resolve` calls
innocenzi 7a7c07a
refactor(database): rename `toSql` to compile and extract raw sql com…
innocenzi 63bd1b7
refactor(database): remove setter from `HasWhereStatements`
innocenzi f97a9f8
refactor(database): add back `resolve` to models
innocenzi c4eb32c
refactor(database): merge query builder and model query builder
innocenzi 0922233
fix(database): fix default foreign key names
innocenzi ba4b5d5
refactor(database): support relation-only updates
innocenzi 7b066d2
fix(database): handle uninitialized pkey edge case
innocenzi f814d79
refactor(database): rename `toSql` to `compile` in query builders
innocenzi 437f82d
refactor(database): use Tempest reflection instead of built-in one
innocenzi 708ef96
refactor(database): clean up update query builder
innocenzi b5d146d
feat(database): add `transform` to query builders
innocenzi 218760d
fix(database): properly pass through generics to query builder traits
innocenzi 2a34424
fix(database): support virtual properties
innocenzi ba68baf
refactor(database): support hybrid `where`
innocenzi fcaa7a8
fix(database): reload loaded relations when using `refresh`
innocenzi 8d9a53e
test: remove redundant assertion
innocenzi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.