1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-04-21 16:01:56 +02:00

Added additional docs on the populators parameters where the doctrine populator has a new batchSize parameter

This commit is contained in:
Pim Jansen 2019-09-02 16:49:05 +02:00
parent c49cd54386
commit 299c9ff11c
No known key found for this signature in database
GPG Key ID: 52AFFC0751042A0F

View File

@ -409,6 +409,9 @@ Faker provides adapters for Object-Relational and Object-Document Mappers (curre
To populate entities, create a new populator class (using a generator instance as parameter), then list the class and number of all the entities that must be generated. To launch the actual data population, call the `execute()` method.
Note that some of the `populators` could require additional parameters. As example the `doctrine` populator has an option to specify
its batchSize on how often it will flush the UnitOfWork to the database.
Here is an example showing how to populate 5 `Author` and 10 `Book` objects:
```php