Download the PHP package kolyya/fixtures-helper-bundle without Composer
On this page you can find all versions of the php package kolyya/fixtures-helper-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kolyya/fixtures-helper-bundle
More information about kolyya/fixtures-helper-bundle
Files in kolyya/fixtures-helper-bundle
Package fixtures-helper-bundle
Short Description Symfony bundle with helpers for fixtures
License MIT
Informations about the package fixtures-helper-bundle
Fixtures Helper Symfony Bundle
Symfony bundle with helpers for fixtures
Load Command
bin/console kolyya:fixtures:load
Will completely clear the database. And load data from fixtures.
Run the following commands:
doctrine:schema:drop --full-database --force
doctrine:schema:update --force
doctrine:fixtures:load --append
Options
-
--force
- Run the command without confirmation --config[=CONFIG]
- The name of the config to run commands
To use your config, add it to the configuration.
Upload File
-
Create a directory, for example
<kernel_project_dir>/assets/fixtures/product
-
Put files to upload there
-
Inherit DataFixtures class from
Kolyya\FixturesHelperBundle\DataFixtures\BaseUploadFileFixtures
-
Add
getAssetPath
method to the DataFixtures class. It should return the relative path to the directory. - Get file
Development
At the root of the symfony project, create a directory Kolyya
.
Clone this repository to this directory:
Add to file composer.json
:
And execute the command:
All versions of fixtures-helper-bundle with dependencies
symfony/framework-bundle Version ^4.0|^5.0|^6.0
symfony/orm-pack Version ^1.0|^2.0
doctrine/doctrine-fixtures-bundle Version ^3.1