Passed
Pull Request — 1.x (#21)
by Marko
02:55
created

CategoryFixtures::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace KunicMarko\SonataAnnotationBundle\Features\Fixtures;
4
5
use KunicMarko\SonataAnnotationBundle\Features\Fixtures\Project\Entity\Category;
6
use Doctrine\Bundle\FixturesBundle\Fixture;
7
use Doctrine\Common\Persistence\ObjectManager;
8
9
class CategoryFixtures extends Fixture
10
{
11
    public function load(ObjectManager $manager)
12
    {
13
        $category = new Category('Dummy Category');
14
15
        $manager->persist($category);
16
        $manager->flush();
17
    }
18
}
19