|
Lggr
|
Public Member Functions | |
| __construct (\Faker\Generator $generator, Locator $locator=null) | |
| addEntity ( $entityName, $number, $customColumnFormatters=array(), $customModifiers=array(), $useExistingData=false) | |
| execute ($locator=null) | |
Protected Attributes | |
| $generator | |
| $locator | |
| $entities = array() | |
| $quantities = array() | |
Service class for populating a database using the Spot ORM.
| Faker\ORM\Spot\Populator::__construct | ( | \Faker\Generator | $generator, |
| Locator | $locator = null |
||
| ) |
Populator constructor.
| \Faker\Generator | $generator | |
| Locator | null | $locator |
| Faker\ORM\Spot\Populator::addEntity | ( | $entityName, | |
| $number, | |||
$customColumnFormatters = array(), |
|||
$customModifiers = array(), |
|||
$useExistingData = false |
|||
| ) |
Add an order for the generation of $number records for $entity.
| $entityName | string Name of Entity object to generate |
| $number | int The number of entities to populate |
| $customColumnFormatters | array |
| $customModifiers | array |
| $useExistingData | bool Should we use existing rows (e.g. roles) to populate relations? |
| Faker\ORM\Spot\Populator::execute | ( | $locator = null | ) |
1.8.17