Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
trash
/
vhost_www.rec-app.app_1716798588
/
htdocs
/
src
/
DataFixtures
/
/srv/data/trash/vhost_www.rec-app.app_1716798588/htdocs/src/DataFixtures/PhoneOptionFixtures.php
<?php namespace App\DataFixtures; use App\Entity\PhoneOption; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; class PhoneOptionFixtures extends Fixture { public function load(ObjectManager $manager): void { $options = [ 'Taille de l\'écran', 'Autonomie de la batterie', 'Appareil photo', 'Capacité de stockage', 'Couleur' ]; foreach ($options as $key => $option) { $phoneOption = new PhoneOption(); $phoneOption->setName($option); $phoneOption->setCreatedAt(new \DateTime()); $manager->persist($phoneOption); $this->addReference('option_' . $key, $phoneOption); } $manager->flush(); } }