Created
August 31, 2017 10:20
-
-
Save brusch/03521a225cffee4baa8f3565342252d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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