Completed
Pull Request — 1.x (#21)
by Marko
04:03
created

CategoryFixtures   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 6 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