public function deleteBulk(array $themes, User $user)
    {
        // Reload the list of questions to delete
        $toDelete = $this->repository->findByUuids($themes);

        $this->om->startFlushSuite();
        foreach ($toDelete as $theme) {
            $this->delete($theme, $user, true);
        }
        $this->om->endFlushSuite();
    }
public function deleteBulk(array $themes, User $user)
    {
        // Reload the list of questions to delete
        $toDelete = $this->repository->findByUuids($themes);

        $this->om->startFlushSuite();
        foreach ($toDelete as $theme) {
            $this->delete($theme, $user, true);
        }
        $this->om->endFlushSuite();
    }
public function deleteBulk ( array $ themes , User $ user ) { // Reload the list of questions to delete $ toDelete = $ this -> repository -> findByUuids ( $ themes ) ; $ this -> om -> startFlushSuite ( ) ; foreach ( $ toDelete as $ theme ) { $ this -> delete ( $ theme , $ user , true ) ; } $ this -> om -> endFlushSuite ( ) ; }
Deletes a Theme.
It's only possible if the User owns it.

@param array $themes - the uuids of themes to delete
@param User  $user
Deletes a Theme . It s only possible if the User owns it .