Exemplo n.º 1
0
 public function testSetType()
 {
     // new entity
     $forum = new Forum();
     // Use the setType method
     $forum->setType("team");
     // Assert the result
     $this->assertEquals("team", $forum->getType());
 }
Exemplo n.º 2
0
 public function load(ObjectManager $manager)
 {
     $forum1 = new Forum();
     $forum1->setName('Skoler');
     $forum1->setDescription('Diskusjon for de ulike ungdommskolene');
     $forum1->setType("school");
     $manager->persist($forum1);
     $manager->flush();
     $this->addReference('forum-1', $forum1);
 }