Method | Description | |
---|---|---|
addFixture ( Doctrine\Common\DataFixtures\FixtureInterface $fixture ) | Add a fixture object instance to the loader. | |
getFixture ( string $className ) : Doctrine\Common\DataFixtures\FixtureInterface | Get a specific fixture instance | |
getFixtures ( ) : array | Returns the array of data fixtures to execute. | |
hasFixture ( Doctrine\Common\DataFixtures\FixtureInterface $fixture ) : boolean | Has fixture? | |
isTransient ( $className ) : boolean | Check if a given fixture is transient and should not be considered a data fixtures class. | |
loadFromDirectory ( string $dir ) : array | Find fixtures classes in a given directory and load them. | |
loadFromFile ( string $fileName ) : array | Find fixtures classes in a given file and load them. |
Method | Description | |
---|---|---|
getUnsequencedClasses ( $sequences, $classes = null ) | ||
loadFromIterator ( Iterator $iterator ) : array | Load fixtures from files contained in iterator. | |
orderFixturesByDependencies ( ) : void | Orders fixtures by dependencies | |
orderFixturesByNumber ( ) : void | Orders fixtures by number | |
validateDependencies ( $dependenciesClasses ) |
public addFixture ( Doctrine\Common\DataFixtures\FixtureInterface $fixture ) | ||
$fixture | Doctrine\Common\DataFixtures\FixtureInterface |
public getFixture ( string $className ) : Doctrine\Common\DataFixtures\FixtureInterface | ||
$className | string | |
return | Doctrine\Common\DataFixtures\FixtureInterface |
public getFixtures ( ) : array | ||
return | array | $fixtures |
public hasFixture ( Doctrine\Common\DataFixtures\FixtureInterface $fixture ) : boolean | ||
$fixture | Doctrine\Common\DataFixtures\FixtureInterface | |
return | boolean |
public isTransient ( $className ) : boolean | ||
return | boolean |
public loadFromDirectory ( string $dir ) : array | ||
$dir | string | Directory to find fixture classes in. |
return | array | $fixtures Array of loaded fixture object instances. |
public loadFromFile ( string $fileName ) : array | ||
$fileName | string | File to find fixture classes in. |
return | array | $fixtures Array of loaded fixture object instances. |