[TASK] Add persistAll shortcut
This commit is contained in:
parent
0109796bc6
commit
e8ad15ad03
@ -21,6 +21,7 @@ use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
|
||||
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController as BaseController;
|
||||
use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder;
|
||||
use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper;
|
||||
use TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager;
|
||||
use TYPO3\CMS\Extbase\Property\PropertyMapper;
|
||||
use TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationBuilder;
|
||||
use TYPO3\CMS\Extbase\Service\ExtensionService;
|
||||
@ -249,6 +250,16 @@ class ActionController extends BaseController
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns an instance of uribuilder
|
||||
*/
|
||||
public function persistAll()
|
||||
{
|
||||
($this->objectManager->get(
|
||||
PersistenceManager::class
|
||||
))->persistAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* shortcut
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user