Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function save(array $options = []): bool |
||
15 | { |
||
16 | if (\config('entry.saveViaQueue', false)) { |
||
17 | return \app(BulkService::class)->insert($this); |
||
|
|||
18 | } |
||
19 | |||
20 | foreach ($this->getAttributes() as $column => $value) { |
||
21 | if ($value === null) { |
||
22 | $this->$column = raw('NULL'); |
||
23 | } |
||
24 | } |
||
25 | |||
26 | return parent::save($options); |
||
27 | } |
||
30 |