Skip to content

Instantly share code, notes, and snippets.

@brusch
Created August 31, 2017 10:20
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brusch/03521a225cffee4baa8f3565342252d4 to your computer and use it in GitHub Desktop.
Save brusch/03521a225cffee4baa8f3565342252d4 to your computer and use it in GitHub Desktop.
<?php
include_once 'pimcore/config/startup_cli.php';
$classList = new \Pimcore\Model\DataObject\ClassDefinition\Listing();
$classes = $classList->load();
foreach ($classes as $class) {
$class->save();
}
$brickList = new \Pimcore\Model\DataObject\Objectbrick\Definition\Listing();
$brickList = $brickList->load();
foreach ($brickList as $brickDef) {
$brickDef->save();
}
$fcList = new \Pimcore\Model\DataObject\Fieldcollection\Definition\Listing();
$fcList = $fcList->load();
foreach ($fcList as $collectionDef) {
$collectionDef->save();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment