Download the PHP package youwe/pimcore-fixtures without Composer
On this page you can find all versions of the php package youwe/pimcore-fixtures. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package pimcore-fixtures
Pimcore YML fixtures
Based on Alice
How to install
This plugin is only for DEV, do NOT install on a production server
How to load fixtures
You must enable the bundle as followed php bin/console pimcore:bundle:enable FixtureBundle
. To check if the bundle is installed correctly php bin/console pimcore:bundle:list
.
Place your fixtures in /var/bundles/FixtureBundle/fixtures
named "001_object_name.yml", "002_object_name.yml" etc.
Example fixture for creating a folder
Load them with:
Console
Load individual files with --files comma separated files without yml extension:
Console
Backend
Go to Extensions \ PimcoreFixtures \ plugin settings \ Load fixtures
Fixtures generator (still beta)
Backend
Go to Extensions \ PimcoreFixtures \ plugin settings
- Object path: the root where to start generating fixtures
- Object name: Recommended would be the object class ex. product, will translate into at [PIMCORE_ROOT]/website/var/plugins/PimcoreFixtures/fixtures/000_product.yml
- Max level deep: Will stop at the specified level (default 1) and if greater then 1 then level will be appended to filename
- Click generate. The generated files should be at [PIMCORE_ROOT]/website/var/plugins/PimcoreFixtures/fixtures/*.yml
Console
Delete object/assets/documents
Useful links
Todo:
-
Support for following fields one fixtures:generate
- Object\ClassDefinition\Data\Classificationstore
- Object\ClassDefinition\Data\Fieldcollection
- Object\ClassDefinition\Data\ObjectsMetadata
- Object\ClassDefinition\Data\MultihrefMetadata
- Object\ClassDefinition\Data\Objectbricks
- security checks / user restrictions
- better error handling in ext-js interface
- live progress when loading fixtures