sleeping-owl / with-join

Package to convert Eloquent BelongsTo subqueries into one query with left join
MIT License
92 stars 24 forks source link

Use $with array for also setting references #2

Closed delaet closed 9 years ago

delaet commented 9 years ago

When you set the $with var in your Eloquent model it will automatically set its references.

sleeping-owl commented 9 years ago

It will break the default behavior of Eloquent models and possibly will break some existing code. I can't include it to the repository.