|
|
| $generator |
| |
|
| $mandango |
| |
|
| $entities = array() |
| |
|
| $quantities = array() |
| |
Service class for populating a database using Mandango. A Populator can populate several tables using ActiveRecord classes.
◆ __construct()
| Faker\ORM\Mandango\Populator::__construct |
( |
\Faker\Generator |
$generator, |
|
|
Mandango |
$mandango |
|
) |
| |
- Parameters
-
| \Faker\Generator | $generator | |
| Mandango | $mandango | |
◆ addEntity()
| Faker\ORM\Mandango\Populator::addEntity |
( |
|
$entity, |
|
|
|
$number, |
|
|
|
$customColumnFormatters = array() |
|
) |
| |
Add an order for the generation of $number records for $entity.
- Parameters
-
| mixed | $entity | A Propel ActiveRecord classname, or a \Faker\ORM\Propel\EntityPopulator instance |
| int | $number | The number of entities to populate |
◆ execute()
| Faker\ORM\Mandango\Populator::execute |
( |
| ) |
|
Populate the database using all the Entity classes previously added.
- Returns
- array A list of the inserted entities.
The documentation for this class was generated from the following file:
- vendor/fzaninotto/faker/src/Faker/ORM/Mandango/Populator.php