Skip to content

Commit c447845

Browse files
committed
[Fixtures] Create a AppFixtures fixtures instead of .gitignore
1 parent 081bc81 commit c447845

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

doctrine/doctrine-fixtures-bundle/3.0/src/DataFixtures/.gitignore

Whitespace-only changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace App\DataFixtures;
4+
5+
use Doctrine\Bundle\FixturesBundle\Fixture;
6+
use Doctrine\Common\Persistence\ObjectManager;
7+
8+
class AppFixtures extends Fixture
9+
{
10+
public function load(ObjectManager $manager)
11+
{
12+
// $product = new Product();
13+
// $manager->persist($product);
14+
15+
$manager->flush();
16+
}
17+
}

0 commit comments

Comments
 (0)