CategoryFixtures::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
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