<?php

namespace App\Tests\Fixture;

use App\Entity\Booking\Event;
use App\Entity\Core\ContactPoint;
use App\Entity\Network\Network;
use App\Entity\Network\NetworkOrganization;
use App\Entity\Organization\Organization;
use App\Entity\Organization\Parameters;
use App\Entity\Person\Person;
use App\Enum\Booking\VisibilityEnum;
use App\Enum\Core\ContactPointTypeEnum;
use App\Enum\Organization\LegalEnum;
use App\Enum\Organization\PrincipalTypeEnum;
use App\Tests\Fixture\Factory\Person\PersonFactory;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
use Symfony\Component\Serializer\Context\SerializerContextBuilder;
use App\Service\Utils\Uuid;
use Zenstruck\Foundry\Factory;

class PersonFixtures extends Fixture
{
    public function load(ObjectManager $em): void
    {
        PersonFactory::createMany(10, static function() {
            return [
                'username' => Factory::faker()->name()
            ];});

        $em->flush();
    }
}
