mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-22 00:09:59 +01:00
Clarify the ORM / ODM adapters usage
This commit is contained in:
parent
b2b8ec1032
commit
cdc4e2d0e6
@ -183,7 +183,7 @@ You can check available Faker locales in the source code, [under the `Provider`
|
||||
|
||||
## Populating Entities Using an ORM or an ODM
|
||||
|
||||
Faker provides an adapter for the Object-Relational and Object-Document Mappers (currently, [Propel](http://www.propelorm.org), [Doctrine2](http://www.doctrine-project.org/projects/orm/2.0/docs/en), and [Mandango](https://github.com/mandango/mandango)) to ease the population of a database using the Entity classes managed by the ORM.
|
||||
Faker provides adapters for Object-Relational and Object-Document Mappers (currently, [Propel](http://www.propelorm.org), [Doctrine2](http://www.doctrine-project.org/projects/orm/2.0/docs/en), and [Mandango](https://github.com/mandango/mandango) are supported). These adapters ease the population of databases through the Entity classes provided by an ORM library (or the population of document stores using Document classes provided by an ODM library).
|
||||
|
||||
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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user