BaseFixture

Extends \Doctrine\Bundle\FixturesBundle\Fixture Implements \Doctrine\Common\DataFixtures\OrderedFixtureInterface

Class BaseFixture extends Symfony 4 Doctrine Fixtures Bundle

see
package

App\DataFixtures

Methods

BaseFixture constructor.

__construct(\Symfony\Component\DependencyInjection\ContainerInterface $container) 

Arguments

$container

\Symfony\Component\DependencyInjection\ContainerInterface

Retrieve the current environment

getCurrentEnvironment() : string

Response

string

Loads the fixtures by calling the abstract method on extended classes

load(\Doctrine\Common\Persistence\ObjectManager $manager) 

Arguments

$manager

\Doctrine\Common\Persistence\ObjectManager

Loads the data from the fixture into the database

loadData(\Doctrine\Common\Persistence\ObjectManager $manager) : mixed
abstract

Arguments

$manager

\Doctrine\Common\Persistence\ObjectManager

Response

mixed

Properties

Object Manager for interface to database entities

manager : \Doctrine\Common\Persistence\ObjectManager
var

Type(s)

\Doctrine\Common\Persistence\ObjectManager

The dependency injection container.

container : \Symfony\Component\DependencyInjection\ContainerInterface
var

Type(s)

\Symfony\Component\DependencyInjection\ContainerInterface