Skip to content

Instantly share code, notes, and snippets.

@langhard
Last active April 2, 2017 18:10
Show Gist options
  • Save langhard/6006843 to your computer and use it in GitHub Desktop.
Save langhard/6006843 to your computer and use it in GitHub Desktop.
TYPO3 - CMS - Extbase - PersistenceManager
/**
* @var \TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface
* @inject
*/
protected $persistenceManager;
$objectManager = new \TYPO3\CMS\Extbase\Object\ObjectManager();
$persistenceManager = $objectManager->get('TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager');
$persistenceManager->persistAll();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment