This commit is contained in:
James Cole 2018-10-22 19:00:37 +02:00
parent e164e22e13
commit 1c8375d0c2

View File

@ -79,7 +79,7 @@ class UseEncryption extends Command
$fqn = sprintf('FireflyIII\Models\%s', $class);
$encrypt = true === config('firefly.encryption') ? 0 : 1;
/** @noinspection PhpUndefinedMethodInspection */
$set = $fqn::where($indicator, $encrypt)->get();
$set = $fqn::where($indicator, $encrypt)->withDeleted()->get();
foreach ($set as $entry) {
$newName = $entry->$field;