Exemplo n.º 1
0
 public function doLoad(ObjectManager $manager)
 {
     /** @var Label $label */
     $label = $this->getReference(Label::class);
     $note = new Entity\Note();
     $note->setTitle('Test Title');
     $note->setColor('red');
     $note->setType(Entity\Note::TYPE_TEXT);
     $note->setContent('Test Content');
     $note->addLabel($label);
     $manager->persist($note);
     $this->setReference(static::class, $note);
     $manager->flush();
     return [$note];
 }