38 lines
822 B
PHP
38 lines
822 B
PHP
<?php
|
|
namespace Cjel\TemplatesAide\Traits;
|
|
|
|
/***
|
|
*
|
|
* This file is part of the "Templates Aide" Extension for TYPO3 CMS.
|
|
*
|
|
* For the full copyright and license information, please read the
|
|
* LICENSE.txt file that was distributed with this source code.
|
|
*
|
|
* (c) 2021 Philipp Dieter <philippdieter@attic-media.net>
|
|
*
|
|
***/
|
|
|
|
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
|
use TYPO3\CMS\Extbase\Object\ObjectManager;
|
|
use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper;
|
|
use TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager;
|
|
|
|
/**
|
|
* ValidationTrait
|
|
*/
|
|
trait PersistenceManagerTrait
|
|
{
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public function persistAll()
|
|
{
|
|
(GeneralUtility::makeInstance(
|
|
ObjectManager::class
|
|
)->get(
|
|
PersistenceManager::class
|
|
))->persistAll();
|
|
}
|
|
}
|