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