Closure wasn’t working, go traditional

This commit is contained in:
snipe 2017-10-28 06:23:04 -07:00
parent 25b8c4438e
commit 0058f02e82

View file

@ -70,13 +70,16 @@ class MigrateDenormedAssetLocations extends Migration
\Log::info('Asset: '.$unassigned_asset->id.' still has no location');
}
Asset::get()->each(function ($asset) {
$assets = Asset::get();
foreach ($assets as $asset) {
if (($asset) && ($asset->location_id != $asset->assetLoc()->id)) {
\Log::info('MISMATCH MISMATCH '.$asset->id. "doesn't match its location");
}
});
}
die();
}
/**