[TOOLS][TESTS] Add a data fixture with example notes, for testing

This commit is contained in:
Hugo Sales 2021-05-05 13:37:43 +00:00
parent fbe0f36a53
commit de0c35d5a6
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<?php
namespace App\DataFixtures;
use App\Entity\Note;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
class NoteFixtures extends Fixture
{
public function load(ObjectManager $manager)
{
$manager->persist(Note::create(['gsactor_id' => 1, 'content' => 'some content']));
$manager->flush();
}
}