fix: Use loadPolicyArray instead of loadPolicyLine
This commit is contained in:
parent
0e5b1f2b3d
commit
4872e8f905
|
@ -93,10 +93,7 @@ class DatabaseAdapter implements DatabaseAdapterContract, BatchDatabaseAdapterCo
|
|||
$rows = $this->eloquent->getAllFromCache();
|
||||
|
||||
foreach ($rows as $row) {
|
||||
$line = implode(', ', array_filter($row, function ($val) {
|
||||
return '' != $val && !is_null($val);
|
||||
}));
|
||||
$this->loadPolicyLine(trim($line), $model);
|
||||
$this->loadPolicyArray($this->filterRule($row), $model);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue