src/PHPDish/Bundle/CoreBundle/DataFixtures/ORM/CategoryFixtures.php
public function load(ObjectManager $manager)
    {
        $manager = $this->getCategoryManager();
        $category = $manager->createCategory($this->getReference('general-user'));
        $category->setName('小风的PHP研究所')
            ->setDescription('小风的PHP研究所')
            ->setSlug('php-labs');
        $manager->saveCategory($category);
        $this->addReference('general-category', $category);
    }
public function load(ObjectManager $manager)
    {
        $manager = $this->getCategoryManager();
        $category = $manager->createCategory($this->getReference('general-user'));
        $category->setName('小风的PHP研究所')
            ->setDescription('小风的PHP研究所')
            ->setSlug('php-labs');
        $manager->saveCategory($category);
        $this->addReference('general-category', $category);
    }
{@inheritdoc}