public function load(ObjectManager $manager) { $phpnw = new Tag(); $phpnw->setName('PHPNW'); $phpnw->setSlug('phpnw'); $qualityAssurance = new Tag(); $qualityAssurance->setName('Quality Assurance'); $qualityAssurance->setSlug('quality-assurance'); $manager->persist($phpnw); $manager->persist($qualityAssurance); $manager->flush(); $this->addReference('phpnw', $phpnw); $this->addReference('quality-assurance', $qualityAssurance); }
public function load(ObjectManager $manager) { $symfony = new Tag(); $symfony->setName('symfony'); $symfony->setSlug('symfony'); $qualityAssurance = new Tag(); $qualityAssurance->setName('Quality Assurance'); $qualityAssurance->setSlug('quality-assurance'); $manager->persist($symfony); $manager->persist($qualityAssurance); $manager->flush(); $this->addReference('symfony', $symfony); $this->addReference('quality-assurance', $qualityAssurance); }