for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the feedback project.
*
* (c) Florian Moser <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\DataFixtures;
use App\DataFixtures\Base\BaseFixture;
use App\Entity\Semester;
use Doctrine\Common\Persistence\ObjectManager;
class LoadSemester extends BaseFixture
{
const ORDER = 1;
/**
* Load data fixtures with the passed EntityManager.
* @param ObjectManager $manager
public function load(ObjectManager $manager)
$semester = new Semester();
$semester->setName('HS 2018');
$manager->persist($semester);
$manager->flush();
}
* Get the order of this fixture.
* @return int
public function getOrder()
return static::ORDER;