Lggr
Public Member Functions | Protected Attributes | List of all members
Faker\ORM\Doctrine\EntityPopulator Class Reference

Public Member Functions

 __construct (ClassMetadata $class)
 
 getClass ()
 
 setColumnFormatters ($columnFormatters)
 
 getColumnFormatters ()
 
 mergeColumnFormattersWith ($columnFormatters)
 
 setModifiers (array $modifiers)
 
 getModifiers ()
 
 mergeModifiersWith (array $modifiers)
 
 guessColumnFormatters (\Faker\Generator $generator)
 
 execute (ObjectManager $manager, $insertedEntities, $generateId=false)
 

Protected Attributes

 $class
 
 $columnFormatters = array()
 
 $modifiers = array()
 

Detailed Description

Service class for populating a table through a Doctrine Entity class.

Constructor & Destructor Documentation

◆ __construct()

Faker\ORM\Doctrine\EntityPopulator::__construct ( ClassMetadata  $class)

Class constructor.

Parameters
ClassMetadata$class

Member Function Documentation

◆ execute()

Faker\ORM\Doctrine\EntityPopulator::execute ( ObjectManager  $manager,
  $insertedEntities,
  $generateId = false 
)

Insert one new record using the Entity class.

Parameters
ObjectManager$manager
bool$generateId
Returns
EntityPopulator

◆ getClass()

Faker\ORM\Doctrine\EntityPopulator::getClass ( )
Returns
string

◆ getColumnFormatters()

Faker\ORM\Doctrine\EntityPopulator::getColumnFormatters ( )
Returns
array

◆ getModifiers()

Faker\ORM\Doctrine\EntityPopulator::getModifiers ( )
Returns
array

◆ guessColumnFormatters()

Faker\ORM\Doctrine\EntityPopulator::guessColumnFormatters ( \Faker\Generator  $generator)
Parameters
\Faker\Generator$generator
Returns
array

◆ mergeModifiersWith()

Faker\ORM\Doctrine\EntityPopulator::mergeModifiersWith ( array  $modifiers)
Parameters
array$modifiers

◆ setColumnFormatters()

Faker\ORM\Doctrine\EntityPopulator::setColumnFormatters (   $columnFormatters)
Parameters
$columnFormatters

◆ setModifiers()

Faker\ORM\Doctrine\EntityPopulator::setModifiers ( array  $modifiers)
Parameters
array$modifiers

The documentation for this class was generated from the following file: