Browse Source

Création command nettoyer visitor et order #488

develop
Fab 2 years ago
parent
commit
153daea650
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      Repository/Order/OrderShopStore.php
  2. +2
    -2
      Repository/User/VisitorStore.php

+ 2
- 2
Repository/Order/OrderShopStore.php View File

$query->filterByAlias(OrderStatusModel::$statusAliasAsCart); $query->filterByAlias(OrderStatusModel::$statusAliasAsCart);
$query->filterByUserIsNull(); $query->filterByUserIsNull();
$query->filterByVisitorIsNull(); $query->filterByVisitorIsNull();
dump($query->getQueryBuilder()->getDQL());
return $query->limit(100000)->find();
return $query->limit(50000)->find();
} }
} }

+ 2
- 2
Repository/User/VisitorStore.php View File



$query = $this->createDefaultQuery($query); $query = $this->createDefaultQuery($query);
$query->filterByLastAccess($lastAccess); $query->filterByLastAccess($lastAccess);
// $query->filterByTotalVisit(1);
return $query->find();
$query->filterByTotalVisit(1);
return $query->limit(50000)->find();
} }
} }

Loading…
Cancel
Save