-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add support for Laravel-style relations #167
Commits on Feb 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cbaa2e5 - Browse repository at this point
Copy the full SHA cbaa2e5View commit details -
We shouldn't test completely third-party code.
Configuration menu - View commit details
-
Copy full SHA for 8412881 - Browse repository at this point
Copy the full SHA 8412881View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2c68ce - Browse repository at this point
Copy the full SHA f2c68ceView commit details
Commits on Feb 22, 2024
-
Remove unneeded relation class.
We no longer extend this class, and it doesn't seem to provide any functionality anyway.
Configuration menu - View commit details
-
Copy full SHA for 49949fa - Browse repository at this point
Copy the full SHA 49949faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 80a853a - Browse repository at this point
Copy the full SHA 80a853aView commit details -
Move performDeleteOnRelations method into HasRelationship concern
This method is strictly a relationship method and should be grouped with the other relationship methods.
Configuration menu - View commit details
-
Copy full SHA for a79bbb4 - Browse repository at this point
Copy the full SHA a79bbb4View commit details -
Significantly refactor relation construction.
In order to maintain some semblance of parity with Laravel, we'll now use Laravel's relation constructors and simply overwrite the "new" relation methods to create Winter's relation instances. Winter's relation name and defined constraints functionality will now be called in our own handler after the relation has been instantiated. This will allow us to review the relation directly before any Winter code runs.
Configuration menu - View commit details
-
Copy full SHA for 6c5c7ad - Browse repository at this point
Copy the full SHA 6c5c7adView commit details -
Add ability to define relations (through methods) as dependent.
This allows people using the relation method format to define the "delete" attribute available to relation definition arrays.
Configuration menu - View commit details
-
Copy full SHA for 55f03dc - Browse repository at this point
Copy the full SHA 55f03dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8e093a - Browse repository at this point
Copy the full SHA e8e093aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 583051b - Browse repository at this point
Copy the full SHA 583051bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 173c752 - Browse repository at this point
Copy the full SHA 173c752View commit details
Commits on Feb 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 39453b1 - Browse repository at this point
Copy the full SHA 39453b1View commit details -
Shore up API, strengthen types, remove validation method
The "validateRelationArgs" method does a whole lot of nothing - the most it does is enforce required parameters. These can be picked up in Laravel anyway.
Configuration menu - View commit details
-
Copy full SHA for ce5ddf0 - Browse repository at this point
Copy the full SHA ce5ddf0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8594a13 - Browse repository at this point
Copy the full SHA 8594a13View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fd53cd - Browse repository at this point
Copy the full SHA 7fd53cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 426a2d4 - Browse repository at this point
Copy the full SHA 426a2d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd3e791 - Browse repository at this point
Copy the full SHA cd3e791View commit details -
Added the ability to define the field name and use this as a constraint for attachment relations, separating it from the relation name.
Configuration menu - View commit details
-
Copy full SHA for ee17333 - Browse repository at this point
Copy the full SHA ee17333View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a2d88e - Browse repository at this point
Copy the full SHA 8a2d88eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c9414e1 - Browse repository at this point
Copy the full SHA c9414e1View commit details
Commits on Feb 26, 2024
-
The "Test" suffix might inadvertently be picked up by PHPUnit as a test case.
Configuration menu - View commit details
-
Copy full SHA for b93e935 - Browse repository at this point
Copy the full SHA b93e935View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4c1191 - Browse repository at this point
Copy the full SHA d4c1191View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ac262d - Browse repository at this point
Copy the full SHA 3ac262dView commit details -
Configuration menu - View commit details
-
Copy full SHA for bdc3849 - Browse repository at this point
Copy the full SHA bdc3849View commit details -
Configuration menu - View commit details
-
Copy full SHA for a84b1a2 - Browse repository at this point
Copy the full SHA a84b1a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19b3f1a - Browse repository at this point
Copy the full SHA 19b3f1aView commit details
Commits on Feb 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a2b12e5 - Browse repository at this point
Copy the full SHA a2b12e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06f7b69 - Browse repository at this point
Copy the full SHA 06f7b69View commit details
Commits on Mar 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0c2e944 - Browse repository at this point
Copy the full SHA 0c2e944View commit details
Commits on Mar 28, 2024
-
Merge branch 'fix-through-relations' into wip/laravel-style-relations
Also add ability to define relations as "counted" relations only.
Configuration menu - View commit details
-
Copy full SHA for 2bde984 - Browse repository at this point
Copy the full SHA 2bde984View commit details
Commits on Jul 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0204a0c - Browse repository at this point
Copy the full SHA 0204a0cView commit details
Commits on Jul 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8337ae7 - Browse repository at this point
Copy the full SHA 8337ae7View commit details -
When using the Laravel style relation method and countOnly flag, it was not applying the constraint automatically.
Configuration menu - View commit details
-
Copy full SHA for e0e4676 - Browse repository at this point
Copy the full SHA e0e4676View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1137eb5 - Browse repository at this point
Copy the full SHA 1137eb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c82a43f - Browse repository at this point
Copy the full SHA c82a43fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fcb603 - Browse repository at this point
Copy the full SHA 3fcb603View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4abef8 - Browse repository at this point
Copy the full SHA c4abef8View commit details -
Update src/Database/Relations/Concerns/DefinedConstraints.php
Co-authored-by: Luke Towers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 46778f5 - Browse repository at this point
Copy the full SHA 46778f5View commit details
Commits on Jul 30, 2024
-
Update src/Database/Relations/Concerns/CanBeCounted.php
Co-authored-by: Luke Towers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 11064ed - Browse repository at this point
Copy the full SHA 11064edView commit details -
Update src/Database/Relations/Concerns/CanBeCounted.php
Co-authored-by: Luke Towers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4d1d1d4 - Browse repository at this point
Copy the full SHA 4d1d1d4View commit details -
Update src/Database/Relations/BelongsToMany.php
Co-authored-by: Luke Towers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 192b47d - Browse repository at this point
Copy the full SHA 192b47dView commit details -
Update src/Database/Relations/BelongsToMany.php
Co-authored-by: Luke Towers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 57c22ba - Browse repository at this point
Copy the full SHA 57c22baView commit details -
Update src/Database/Relations/BelongsToMany.php
Co-authored-by: Luke Towers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9d6b829 - Browse repository at this point
Copy the full SHA 9d6b829View commit details -
Update src/Database/Relations/BelongsToMany.php
Co-authored-by: Luke Towers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2951b5c - Browse repository at this point
Copy the full SHA 2951b5cView commit details -
Update src/Database/Relations/BelongsToMany.php
Co-authored-by: Luke Towers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 248397b - Browse repository at this point
Copy the full SHA 248397bView commit details -
Co-authored-by: Luke Towers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 500c32b - Browse repository at this point
Copy the full SHA 500c32bView commit details -
Update src/Database/Relations/BelongsToMany.php
Co-authored-by: Luke Towers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e48418b - Browse repository at this point
Copy the full SHA e48418bView commit details -
Configuration menu - View commit details
-
Copy full SHA for abcf7ee - Browse repository at this point
Copy the full SHA abcf7eeView commit details
Commits on Jul 31, 2024
-
Update src/Database/Relations/Concerns/DefinedConstraints.php
Co-authored-by: Luke Towers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 49d581d - Browse repository at this point
Copy the full SHA 49d581dView commit details
Commits on Aug 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 90adf97 - Browse repository at this point
Copy the full SHA 90adf97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9840073 - Browse repository at this point
Copy the full SHA 9840073View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd78973 - Browse repository at this point
Copy the full SHA dd78973View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f6eb37 - Browse repository at this point
Copy the full SHA 5f6eb37View commit details
Commits on Sep 2, 2024
-
Use alternative method for defining soft deletable relations
Instead of extending the Relation class, we will make the soft delete methods available immediately to the relations. However, you can only *enable* soft delete if the related model uses the soft delete trait, thereby ensuring the correct soft delete functionality is available to the model when required.
Configuration menu - View commit details
-
Copy full SHA for 9b056bf - Browse repository at this point
Copy the full SHA 9b056bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 267187b - Browse repository at this point
Copy the full SHA 267187bView commit details
Commits on Oct 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fe2fdec - Browse repository at this point
Copy the full SHA fe2fdecView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb815a9 - Browse repository at this point
Copy the full SHA eb815a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for f8ee9d7 - Browse repository at this point
Copy the full SHA f8ee9d7View commit details
Commits on Oct 8, 2024
-
Fix infinite loop, improve support for dynamic Laravel relations, imp…
…rove performance To prevent a particular infinite loop, we need to define the Relation type when using the Relation attribute for a method so that we don't have to instantiate the relation in order to find out what type it is.
Configuration menu - View commit details
-
Copy full SHA for 2c8972b - Browse repository at this point
Copy the full SHA 2c8972bView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbddb54 - Browse repository at this point
Copy the full SHA bbddb54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9867c26 - Browse repository at this point
Copy the full SHA 9867c26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13e66cf - Browse repository at this point
Copy the full SHA 13e66cfView commit details -
When a relation is defined in both the relation properties and as a method with the same name, an exception will be thrown.
Configuration menu - View commit details
-
Copy full SHA for 55603fc - Browse repository at this point
Copy the full SHA 55603fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0775c36 - Browse repository at this point
Copy the full SHA 0775c36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98a2247 - Browse repository at this point
Copy the full SHA 98a2247View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a875c8 - Browse repository at this point
Copy the full SHA 7a875c8View commit details