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

Public Member Functions

 __construct ($class)
 
 getClass ()
 
 setColumnFormatters ($columnFormatters)
 
 getColumnFormatters ()
 
 mergeColumnFormattersWith ($columnFormatters)
 
 guessColumnFormatters (\Faker\Generator $generator, Mandango $mandango)
 
 execute (Mandango $mandango, $insertedEntities)
 

Protected Attributes

 $class
 
 $columnFormatters = array()
 

Detailed Description

Service class for populating a table through a Mandango ActiveRecord class.

Constructor & Destructor Documentation

◆ __construct()

Faker\ORM\Mandango\EntityPopulator::__construct (   $class)

Class constructor.

Parameters
string$classA Mandango ActiveRecord classname

Member Function Documentation

◆ execute()

Faker\ORM\Mandango\EntityPopulator::execute ( Mandango  $mandango,
  $insertedEntities 
)

Insert one new record using the Entity class.

Parameters
Mandango$mandango

◆ getClass()

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

◆ getColumnFormatters()

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

◆ guessColumnFormatters()

Faker\ORM\Mandango\EntityPopulator::guessColumnFormatters ( \Faker\Generator  $generator,
Mandango  $mandango 
)
Parameters
\Faker\Generator$generator
Mandango$mandango
Returns
array

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