-
Notifications
You must be signed in to change notification settings - Fork 88
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
Next version input #21
Comments
1.yes 3.* is not backward compatible, because of this I named it 3.* not 2.* 2.I have in plan also to support HasMany relation, method for join should be something like this
3.orderByJoinPivot can be usefull also, but this method is for pivot table on HasMany relation 4.group by is not needed anymore because I added this https://github.com/fico7489/laravel-eloquent-join/blob/master/src/EloquentJoinBuilder.php#L101 5.Extending laravel relations are awkward, acctually I requested that improvement : 😄 |
|
2.hm yeah I really didn't finished concept but it will be roughly something like this : order by related table
order by pivot table
tables
|
If you have more questions or suggestion feel free to ask me |
I have been working on similar things as you for this package over the last several months.
https://github.com/dariusj18/laravel-eloquent-join/commits/master
I would like to present some differences in where you have gone vs where I did.
BelongsToManyJoin
relation, I may have been naive, however it worked for my purposes.orderByJoinPivot
, this is a natural extension of theBelongsToManyJoin
and is very useful.groupBy
, however I don't think there should be the extra select added automatically either. If anything, I think it would be best to have an additional method to let the user choose to add the grouping if they think it is needed.ExtendRelationsTrait
to override thenewBelongsTo
andnewHasOne
methods that Laravel added in 5.5 [5.5] Allow developers to extend Relationship Classes laravel/framework#22617I would appreciate any feedback on my suggestions.
The text was updated successfully, but these errors were encountered: