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();
|
$rows = $this->eloquent->getAllFromCache();
|
||||||
|
|
||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
$line = implode(', ', array_filter($row, function ($val) {
|
$this->loadPolicyArray($this->filterRule($row), $model);
|
||||||
return '' != $val && !is_null($val);
|
|
||||||
}));
|
|
||||||
$this->loadPolicyLine(trim($line), $model);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue