Skip to content

Commit 114afa0

Browse files
authored
Merge pull request #2194 from simonschaufi/patch-1
Add doesntExist to passthru
2 parents 09fcda8 + f1f8e05 commit 114afa0

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
55

6+
### Fixed
7+
- Sync passthru methods [#2194](https://github.com/jenssegers/laravel-mongodb/pull/2194) by [@simonschaufi](https://github.com/simonschaufi)
8+
69
## [3.8.3] - 2021-02-21
710

811
### Changed

src/Jenssegers/Mongodb/Eloquent/Builder.php

+18-8
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,28 @@ class Builder extends EloquentBuilder
1616
* @var array
1717
*/
1818
protected $passthru = [
19-
'toSql',
19+
'average',
20+
'avg',
21+
'count',
22+
'dd',
23+
'doesntExist',
24+
'dump',
25+
'exists',
26+
'getBindings',
27+
'getConnection',
28+
'getGrammar',
2029
'insert',
2130
'insertGetId',
22-
'pluck',
23-
'count',
24-
'min',
31+
'insertOrIgnore',
32+
'insertUsing',
2533
'max',
26-
'avg',
27-
'sum',
28-
'exists',
29-
'push',
34+
'min',
35+
'pluck',
3036
'pull',
37+
'push',
38+
'raw',
39+
'sum',
40+
'toSql'
3141
];
3242

3343
/**

0 commit comments

Comments
 (0)