changed timebasedfieldupdated back
This commit is contained in:
parent
a228ea5554
commit
a4aa8444e3
@ -31,7 +31,9 @@ final class TimeBasedFieldUpdater {
|
||||
$query = $this->entityTypeManager->getStorage($this->entity_type)->getQuery();
|
||||
$conditions[] = [$this->date_field, date($this->date_format, strtotime('-'.$time_elapsed)), "<"];
|
||||
$conditions[] = ['type', $this->bundle, '='];
|
||||
$this->utils->addConditionsToQuery($query, $conditions);
|
||||
foreach ($conditions as $condition) {
|
||||
$query->condition($condition);
|
||||
}
|
||||
foreach($query->execute() as $id) {
|
||||
$this->updateEntity($id, $new_values);
|
||||
}
|
||||
|
Reference in New Issue
Block a user