mirror of
https://github.com/symfony/recipes.git
synced 2026-09-15 00:56:24 +03:00
44 lines
1.5 KiB
JSON
44 lines
1.5 KiB
JSON
{
|
|
"manifests": {
|
|
"doctrine/doctrine-fixtures-bundle": {
|
|
"manifest": {
|
|
"bundles": {
|
|
"Doctrine\\Bundle\\FixturesBundle\\DoctrineFixturesBundle": [
|
|
"dev",
|
|
"test"
|
|
]
|
|
},
|
|
"copy-from-recipe": {
|
|
"src/": "%SRC_DIR%/"
|
|
}
|
|
},
|
|
"files": {
|
|
"src/DataFixtures/AppFixtures.php": {
|
|
"contents": [
|
|
"<?php",
|
|
"",
|
|
"namespace App\\DataFixtures;",
|
|
"",
|
|
"use Doctrine\\Bundle\\FixturesBundle\\Fixture;",
|
|
"use Doctrine\\Persistence\\ObjectManager;",
|
|
"",
|
|
"class AppFixtures extends Fixture",
|
|
"{",
|
|
" public function load(ObjectManager $manager): void",
|
|
" {",
|
|
" // $product = new Product();",
|
|
" // $manager->persist($product);",
|
|
"",
|
|
" $manager->flush();",
|
|
" }",
|
|
"}",
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "1f5514cfa15b947298df4d771e694e578d4c204d"
|
|
}
|
|
}
|
|
}
|