Lggr
|
Public Member Functions | |
__construct (ClassMetadata $class) | |
getClass () | |
setColumnFormatters ($columnFormatters) | |
getColumnFormatters () | |
mergeColumnFormattersWith ($columnFormatters) | |
setModifiers (array $modifiers) | |
getModifiers () | |
mergeModifiersWith (array $modifiers) | |
guessColumnFormatters (\Faker\Generator $generator) | |
execute (ObjectManager $manager, $insertedEntities, $generateId=false) | |
Protected Attributes | |
$class | |
$columnFormatters = array() | |
$modifiers = array() | |
Service class for populating a table through a Doctrine Entity class.
Faker\ORM\Doctrine\EntityPopulator::__construct | ( | ClassMetadata | $class | ) |
Class constructor.
ClassMetadata | $class |
Faker\ORM\Doctrine\EntityPopulator::execute | ( | ObjectManager | $manager, |
$insertedEntities, | |||
$generateId = false |
|||
) |
Insert one new record using the Entity class.
ObjectManager | $manager | |
bool | $generateId |
Faker\ORM\Doctrine\EntityPopulator::getClass | ( | ) |
Faker\ORM\Doctrine\EntityPopulator::getColumnFormatters | ( | ) |
Faker\ORM\Doctrine\EntityPopulator::getModifiers | ( | ) |
Faker\ORM\Doctrine\EntityPopulator::guessColumnFormatters | ( | \Faker\Generator | $generator | ) |
\Faker\Generator | $generator |
Faker\ORM\Doctrine\EntityPopulator::mergeModifiersWith | ( | array | $modifiers | ) |
array | $modifiers |
Faker\ORM\Doctrine\EntityPopulator::setColumnFormatters | ( | $columnFormatters | ) |
$columnFormatters |
Faker\ORM\Doctrine\EntityPopulator::setModifiers | ( | array | $modifiers | ) |
array | $modifiers |