(TYPO3 v11)
There is a table of events. Each event has a datetime_end field and a days_until_deletionfield. A scheduler script should delete old events automatically.
In SQL this works:
UPDATE `tx_myevents_domain_model_event` SET deleted = 1
WHERE UNIX_TIMESTAMP() > (datetime_end + (days_until_deletion * 86400));
Is there a way to reproduce this SQL statement with the querybuilder? Something like:
$queryBuilder->where(
$queryBuilder->expr()->lt( ('datetime_end' + ('days_until_deletion' * 86400)), time()
)