메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | Doctrine\Common\DataFixtures\FixtureInterface |
public getFixtures ( ) : array | ||
리턴 | array | $fixtures |
public hasFixture ( Doctrine\Common\DataFixtures\FixtureInterface $fixture ) : boolean | ||
$fixture | Doctrine\Common\DataFixtures\FixtureInterface | |
리턴 | boolean |
public isTransient ( $className ) : boolean | ||
리턴 | boolean |
public loadFromDirectory ( string $dir ) : array | ||
$dir | string | Directory to find fixture classes in. |
리턴 | array | $fixtures Array of loaded fixture object instances. |
public loadFromFile ( string $fileName ) : array | ||
$fileName | string | File to find fixture classes in. |
리턴 | array | $fixtures Array of loaded fixture object instances. |