October: Add support for wherePivot

Created on 26 Jul 2016  路  4Comments  路  Source: octobercms/october

(I am not quite sure whether that isn't already implemented but following the Laravel pivot filtering syntax I get an Unknown column 'pivot' in 'where clause' error, so ...)

It would be helpful if October supports Laravels wherePivot queries.

Question

All 4 comments

It looks like this feature was added in 5.2. We can look at backporting it for now. Thanks

@daftspunk Has any progress been made on this? It looks like the wherePivot methods existed all the way back since the Laravel 4 days.

Here they are in 5.1
https://github.com/laravel/framework/blob/5.1/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php#L102-L129

Great! This feature should be is available now then.

Confirmed this feature is available and does work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SeekAndPwn picture SeekAndPwn  路  3Comments

LukeTowers picture LukeTowers  路  3Comments

jvanremoortere picture jvanremoortere  路  3Comments

sozonovalexey picture sozonovalexey  路  3Comments

m49n picture m49n  路  3Comments