Skip to content

Commit 985701d

Browse files
committed
MongoModel
1 parent f0401e0 commit 985701d

File tree

1 file changed

+231
-0
lines changed

1 file changed

+231
-0
lines changed

src/support/MongoModel.php

Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,237 @@
2727
use Illuminate\Support\LazyCollection;
2828

2929
require_once __DIR__ . '/../Initializer.php';
30+
31+
/**
32+
* @method static \Illuminate\Database\Eloquent\Model make($attributes = [])
33+
* @method static \Illuminate\Database\Eloquent\Builder|static withGlobalScope($identifier, $scope)
34+
* @method static \Illuminate\Database\Eloquent\Builder|static withoutGlobalScope($scope)
35+
* @method static \Illuminate\Database\Eloquent\Builder|static withoutGlobalScopes($scopes = null)
36+
* @method static array removedScopes()
37+
* @method static \Illuminate\Database\Eloquent\Builder|static whereKey($id)
38+
* @method static \Illuminate\Database\Eloquent\Builder|static whereKeyNot($id)
39+
* @method static \Illuminate\Database\Eloquent\Builder|static where($column, $operator = null, $value = null, $boolean = 'and')
40+
* @method static BaseModel|null firstWhere($column, $operator = null, $value = null, $boolean = 'and')
41+
* @method static \Illuminate\Database\Eloquent\Builder|static orWhere($column, $operator = null, $value = null)
42+
* @method static \Illuminate\Database\Eloquent\Builder|static latest($column = null)
43+
* @method static \Illuminate\Database\Eloquent\Builder|static oldest($column = null)
44+
* @method static \Illuminate\Database\Eloquent\Collection|static hydrate($items)
45+
* @method static \Illuminate\Database\Eloquent\Collection|static fromQuery($query, $bindings = [])
46+
* @method static BaseModel|\Illuminate\Database\Eloquent\Collection|static[]|static|null find($id, $columns = [])
47+
* @method static \Illuminate\Database\Eloquent\Collection|static findMany($ids, $columns = [])
48+
* @method static BaseModel|\Illuminate\Database\Eloquent\Collection|static|static[] findOrFail($id, $columns = [])
49+
* @method static BaseModel|static findOrNew($id, $columns = [])
50+
* @method static BaseModel|static firstOrNew($attributes = [], $values = [])
51+
* @method static BaseModel|static firstOrCreate($attributes = [], $values = [])
52+
* @method static BaseModel|static updateOrCreate($attributes, $values = [])
53+
* @method static BaseModel|static firstOrFail($columns = [])
54+
* @method static BaseModel|static|mixed firstOr($columns = [], $callback = null)
55+
* @method static BaseModel sole($columns = [])
56+
* @method static mixed value($column)
57+
* @method static \Illuminate\Database\Eloquent\Collection[]|static[] get($columns = [])
58+
* @method static BaseModel[]|static[] getModels($columns = [])
59+
* @method static array eagerLoadRelations($models)
60+
* @method static LazyCollection cursor()
61+
* @method static Collection pluck($column, $key = null)
62+
* @method static LengthAwarePaginator paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
63+
* @method static Paginator simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
64+
* @method static CursorPaginator cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
65+
* @method static BaseModel|$this create($attributes = [])
66+
* @method static BaseModel|$this forceCreate($attributes)
67+
* @method static int upsert($values, $uniqueBy, $update = null)
68+
* @method static void onDelete($callback)
69+
* @method static static|mixed scopes($scopes)
70+
* @method static static applyScopes()
71+
* @method static \Illuminate\Database\Eloquent\Builder|static without($relations)
72+
* @method static \Illuminate\Database\Eloquent\Builder|static withOnly($relations)
73+
* @method static BaseModel newModelInstance($attributes = [])
74+
* @method static \Illuminate\Database\Eloquent\Builder|static withCasts($casts)
75+
* @method static Builder getQuery()
76+
* @method static \Illuminate\Database\Eloquent\Builder|static setQuery($query)
77+
* @method static Builder toBase()
78+
* @method static array getEagerLoads()
79+
* @method static \Illuminate\Database\Eloquent\Builder|static setEagerLoads($eagerLoad)
80+
* @method static BaseModel getModel()
81+
* @method static \Illuminate\Database\Eloquent\Builder|static setModel($model)
82+
* @method static Closure getMacro($name)
83+
* @method static bool hasMacro($name)
84+
* @method static Closure getGlobalMacro($name)
85+
* @method static bool hasGlobalMacro($name)
86+
* @method static static clone ()
87+
* @method static \Illuminate\Database\Eloquent\Builder|static has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
88+
* @method static \Illuminate\Database\Eloquent\Builder|static orHas($relation, $operator = '>=', $count = 1)
89+
* @method static \Illuminate\Database\Eloquent\Builder|static doesntHave($relation, $boolean = 'and', $callback = null)
90+
* @method static \Illuminate\Database\Eloquent\Builder|static orDoesntHave($relation)
91+
* @method static \Illuminate\Database\Eloquent\Builder|static whereHas($relation, $callback = null, $operator = '>=', $count = 1)
92+
* @method static \Illuminate\Database\Eloquent\Builder|static orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
93+
* @method static \Illuminate\Database\Eloquent\Builder|static whereDoesntHave($relation, $callback = null)
94+
* @method static \Illuminate\Database\Eloquent\Builder|static orWhereDoesntHave($relation, $callback = null)
95+
* @method static \Illuminate\Database\Eloquent\Builder|static hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
96+
* @method static \Illuminate\Database\Eloquent\Builder|static orHasMorph($relation, $types, $operator = '>=', $count = 1)
97+
* @method static \Illuminate\Database\Eloquent\Builder|static doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
98+
* @method static \Illuminate\Database\Eloquent\Builder|static orDoesntHaveMorph($relation, $types)
99+
* @method static \Illuminate\Database\Eloquent\Builder|static whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
100+
* @method static \Illuminate\Database\Eloquent\Builder|static orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
101+
* @method static \Illuminate\Database\Eloquent\Builder|static whereDoesntHaveMorph($relation, $types, $callback = null)
102+
* @method static \Illuminate\Database\Eloquent\Builder|static orWhereDoesntHaveMorph($relation, $types, $callback = null)
103+
* @method static \Illuminate\Database\Eloquent\Builder|static withAggregate($relations, $column, $function = null)
104+
* @method static \Illuminate\Database\Eloquent\Builder|static withCount($relations)
105+
* @method static \Illuminate\Database\Eloquent\Builder|static withMax($relation, $column)
106+
* @method static \Illuminate\Database\Eloquent\Builder|static withMin($relation, $column)
107+
* @method static \Illuminate\Database\Eloquent\Builder|static withSum($relation, $column)
108+
* @method static \Illuminate\Database\Eloquent\Builder|static withAvg($relation, $column)
109+
* @method static \Illuminate\Database\Eloquent\Builder|static withExists($relation)
110+
* @method static \Illuminate\Database\Eloquent\Builder|static mergeConstraintsFrom($from)
111+
* @method static Collection explain()
112+
* @method static bool chunk($count, $callback)
113+
* @method static Collection chunkMap($callback, $count = 1000)
114+
* @method static bool each($callback, $count = 1000)
115+
* @method static bool chunkById($count, $callback, $column = null, $alias = null)
116+
* @method static bool eachById($callback, $count = 1000, $column = null, $alias = null)
117+
* @method static LazyCollection lazy($chunkSize = 1000)
118+
* @method static LazyCollection lazyById($chunkSize = 1000, $column = null, $alias = null)
119+
* @method static BaseModel|object|static|null first($columns = [])
120+
* @method static BaseModel|object|null baseSole($columns = [])
121+
* @method static \Illuminate\Database\Eloquent\Builder|static tap($callback)
122+
* @method static mixed when($value, $callback, $default = null)
123+
* @method static mixed unless($value, $callback, $default = null)
124+
* @method static Builder select($columns = [])
125+
* @method static Builder selectSub($query, $as)
126+
* @method static Builder selectRaw($expression, $bindings = [])
127+
* @method static Builder fromSub($query, $as)
128+
* @method static Builder fromRaw($expression, $bindings = [])
129+
* @method static Builder addSelect($column)
130+
* @method static Builder distinct()
131+
* @method static Builder from($table, $as = null)
132+
* @method static Builder join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
133+
* @method static Builder joinWhere($table, $first, $operator, $second, $type = 'inner')
134+
* @method static Builder joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
135+
* @method static Builder leftJoin($table, $first, $operator = null, $second = null)
136+
* @method static Builder leftJoinWhere($table, $first, $operator, $second)
137+
* @method static Builder leftJoinSub($query, $as, $first, $operator = null, $second = null)
138+
* @method static Builder rightJoin($table, $first, $operator = null, $second = null)
139+
* @method static Builder rightJoinWhere($table, $first, $operator, $second)
140+
* @method static Builder rightJoinSub($query, $as, $first, $operator = null, $second = null)
141+
* @method static Builder crossJoin($table, $first = null, $operator = null, $second = null)
142+
* @method static Builder crossJoinSub($query, $as)
143+
* @method static void mergeWheres($wheres, $bindings)
144+
* @method static array prepareValueAndOperator($value, $operator, $useDefault = false)
145+
* @method static Builder whereColumn($first, $operator = null, $second = null, $boolean = 'and')
146+
* @method static Builder orWhereColumn($first, $operator = null, $second = null)
147+
* @method static Builder whereRaw($sql, $bindings = [], $boolean = 'and')
148+
* @method static Builder orWhereRaw($sql, $bindings = [])
149+
* @method static Builder whereIn($column, $values, $boolean = 'and', $not = false)
150+
* @method static Builder orWhereIn($column, $values)
151+
* @method static Builder whereNotIn($column, $values, $boolean = 'and')
152+
* @method static Builder orWhereNotIn($column, $values)
153+
* @method static Builder whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
154+
* @method static Builder orWhereIntegerInRaw($column, $values)
155+
* @method static Builder whereIntegerNotInRaw($column, $values, $boolean = 'and')
156+
* @method static Builder orWhereIntegerNotInRaw($column, $values)
157+
* @method static Builder whereNull($columns, $boolean = 'and', $not = false)
158+
* @method static Builder orWhereNull($column)
159+
* @method static Builder whereNotNull($columns, $boolean = 'and')
160+
* @method static Builder whereBetween($column, $values, $boolean = 'and', $not = false)
161+
* @method static Builder whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
162+
* @method static Builder orWhereBetween($column, $values)
163+
* @method static Builder orWhereBetweenColumns($column, $values)
164+
* @method static Builder whereNotBetween($column, $values, $boolean = 'and')
165+
* @method static Builder whereNotBetweenColumns($column, $values, $boolean = 'and')
166+
* @method static Builder orWhereNotBetween($column, $values)
167+
* @method static Builder orWhereNotBetweenColumns($column, $values)
168+
* @method static Builder orWhereNotNull($column)
169+
* @method static Builder whereDate($column, $operator, $value = null, $boolean = 'and')
170+
* @method static Builder orWhereDate($column, $operator, $value = null)
171+
* @method static Builder whereTime($column, $operator, $value = null, $boolean = 'and')
172+
* @method static Builder orWhereTime($column, $operator, $value = null)
173+
* @method static Builder whereDay($column, $operator, $value = null, $boolean = 'and')
174+
* @method static Builder orWhereDay($column, $operator, $value = null)
175+
* @method static Builder whereMonth($column, $operator, $value = null, $boolean = 'and')
176+
* @method static Builder orWhereMonth($column, $operator, $value = null)
177+
* @method static Builder whereYear($column, $operator, $value = null, $boolean = 'and')
178+
* @method static Builder orWhereYear($column, $operator, $value = null)
179+
* @method static Builder whereNested($callback, $boolean = 'and')
180+
* @method static Builder forNestedWhere()
181+
* @method static Builder addNestedWhereQuery($query, $boolean = 'and')
182+
* @method static Builder whereExists($callback, $boolean = 'and', $not = false)
183+
* @method static Builder orWhereExists($callback, $not = false)
184+
* @method static Builder whereNotExists($callback, $boolean = 'and')
185+
* @method static Builder orWhereNotExists($callback)
186+
* @method static Builder addWhereExistsQuery($query, $boolean = 'and', $not = false)
187+
* @method static Builder whereRowValues($columns, $operator, $values, $boolean = 'and')
188+
* @method static Builder orWhereRowValues($columns, $operator, $values)
189+
* @method static Builder whereJsonContains($column, $value, $boolean = 'and', $not = false)
190+
* @method static Builder orWhereJsonContains($column, $value)
191+
* @method static Builder whereJsonDoesntContain($column, $value, $boolean = 'and')
192+
* @method static Builder orWhereJsonDoesntContain($column, $value)
193+
* @method static Builder whereJsonLength($column, $operator, $value = null, $boolean = 'and')
194+
* @method static Builder orWhereJsonLength($column, $operator, $value = null)
195+
* @method static Builder dynamicWhere($method, $parameters)
196+
* @method static Builder groupBy(...$groups)
197+
* @method static Builder groupByRaw($sql, $bindings = [])
198+
* @method static Builder having($column, $operator = null, $value = null, $boolean = 'and')
199+
* @method static Builder orHaving($column, $operator = null, $value = null)
200+
* @method static Builder havingBetween($column, $values, $boolean = 'and', $not = false)
201+
* @method static Builder havingRaw($sql, $bindings = [], $boolean = 'and')
202+
* @method static Builder orHavingRaw($sql, $bindings = [])
203+
* @method static Builder orderBy($column, $direction = 'asc')
204+
* @method static Builder orderByDesc($column)
205+
* @method static Builder inRandomOrder($seed = '')
206+
* @method static Builder orderByRaw($sql, $bindings = [])
207+
* @method static Builder skip($value)
208+
* @method static Builder offset($value)
209+
* @method static Builder take($value)
210+
* @method static Builder limit($value)
211+
* @method static Builder forPage($page, $perPage = 15)
212+
* @method static Builder forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
213+
* @method static Builder forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
214+
* @method static Builder reorder($column = null, $direction = 'asc')
215+
* @method static Builder union($query, $all = false)
216+
* @method static Builder unionAll($query)
217+
* @method static Builder lock($value = true)
218+
* @method static Builder lockForUpdate()
219+
* @method static Builder sharedLock()
220+
* @method static Builder beforeQuery($callback)
221+
* @method static void applyBeforeQueryCallbacks()
222+
* @method static string toSql()
223+
* @method static int getCountForPagination($columns = [])
224+
* @method static string implode($column, $glue = '')
225+
* @method static bool exists()
226+
* @method static bool doesntExist()
227+
* @method static mixed existsOr($callback)
228+
* @method static mixed doesntExistOr($callback)
229+
* @method static int count($columns = '*')
230+
* @method static mixed min($column)
231+
* @method static mixed max($column)
232+
* @method static mixed sum($column)
233+
* @method static mixed avg($column)
234+
* @method static mixed average($column)
235+
* @method static mixed aggregate($function, $columns = [])
236+
* @method static float|int numericAggregate($function, $columns = [])
237+
* @method static bool insert($values)
238+
* @method static int insertOrIgnore($values)
239+
* @method static int insertGetId($values, $sequence = null)
240+
* @method static int insertUsing($columns, $query)
241+
* @method static bool updateOrInsert($attributes, $values = [])
242+
* @method static void truncate()
243+
* @method static Expression raw($value)
244+
* @method static array getBindings()
245+
* @method static array getRawBindings()
246+
* @method static Builder setBindings($bindings, $type = 'where')
247+
* @method static Builder addBinding($value, $type = 'where')
248+
* @method static Builder mergeBindings($query)
249+
* @method static array cleanBindings($bindings)
250+
* @method static Processor getProcessor()
251+
* @method static Grammar getGrammar()
252+
* @method static Builder useWritePdo()
253+
* @method static static cloneWithout($properties)
254+
* @method static static cloneWithoutBindings($except)
255+
* @method static Builder dump()
256+
* @method static void dd()
257+
* @method static void macro($name, $macro)
258+
* @method static void mixin($mixin, $replace = true)
259+
* @method static mixed macroCall($method, $parameters)
260+
*/
30261
class MongoModel extends BaseModel
31262
{
32263

0 commit comments

Comments
 (0)