Before doing new stuff, i want my scheduler-Task to remove all entries from the database, the execute-function looks like that:
public function execute() {
$o
Since removeAll()
calls findAll()
:
public function removeAll() {
foreach ($this->findAll() AS $object) {
$this->remove($object);
}
}
most likely findAll()
returns no objects. Did you handle the storage pid? Either disable it or pass it manually. It won't be just there if you use methods of your repository from scheduler context.