Conditions | 3 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function whereModelTable($model_table) |
||
34 | { |
||
35 | $model_table = (array) $model_table; |
||
36 | $this->where(function (self $query) use ($model_table) { |
||
37 | foreach ($model_table as $table) { |
||
38 | if (inString($table, '_')) { |
||
39 | $query->orWhereLike('model_table', $table); |
||
40 | } else { |
||
41 | $query->orWhere('model_table', '=', $table); |
||
42 | } |
||
43 | } |
||
44 | }); |
||
45 | |||
46 | return $this; |
||
47 | } |
||
49 |