BehatFixtureFactory
class BehatFixtureFactory extends FixtureFactory
Methods
Writes the fixture into the database using DataObjects
Writes the fixture into the database directly using a database manipulation.
Return all of the IDs in the fixture of a particular class name.
Remove all fixtures previously defined through {@link createObject()} or {@link createRaw()}, both from the internal fixture mapping and the database.
Details
in FixtureFactory at line 44
define(String $name, array|FixtureBlueprint $defaults = array())
at line 7
DataObject
createObject(String $name, String $identifier, Array $data = null)
Writes the fixture into the database using DataObjects
in FixtureFactory at line 91
Int
createRaw(String $table, String $identifier, Array $data)
Writes the fixture into the database directly using a database manipulation.
Does not use blueprints. Only supports tables with a primary key.
in FixtureFactory at line 109
getId($class, $identifier)
Get the ID of an object from the fixture.
in FixtureFactory at line 122
A
getIds($class)
Return all of the IDs in the fixture of a particular class name.
in FixtureFactory at line 135
setId(String $class, String $identifier, Int $databaseId)
in FixtureFactory at line 146
get($class, $identifier)
Get an object from the fixture.
in FixtureFactory at line 155
Array
getFixtures()
in FixtureFactory at line 166
clear($limitToClass = null)
Remove all fixtures previously defined through {@link createObject()} or {@link createRaw()}, both from the internal fixture mapping and the database.
If the $class argument is set, limit clearing to items of this class.