Lggr
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Faker\ORM\Spot\EntityPopulator Class Reference
Collaboration diagram for Faker\ORM\Spot\EntityPopulator:
Collaboration graph
[legend]

Public Member Functions

 __construct (Mapper $mapper, Locator $locator, $useExistingData=false)
 
 getMapper ()
 
 setColumnFormatters ($columnFormatters)
 
 getColumnFormatters ()
 
 mergeColumnFormattersWith ($columnFormatters)
 
 setModifiers (array $modifiers)
 
 getModifiers ()
 
 mergeModifiersWith (array $modifiers)
 
 guessColumnFormatters (Generator $generator)
 
 execute ($insertedEntities)
 

Public Attributes

const RELATED_FETCH_COUNT = 10
 

Protected Attributes

 $mapper
 
 $locator
 
 $columnFormatters = array()
 
 $modifiers = array()
 
 $useExistingData = false
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

Faker\ORM\Spot\EntityPopulator::__construct ( Mapper  $mapper,
Locator  $locator,
  $useExistingData = false 
)

Class constructor.

Parameters
Mapper$mapper
Locator$locator
$useExistingData

Member Function Documentation

◆ execute()

Faker\ORM\Spot\EntityPopulator::execute (   $insertedEntities)

Insert one new record using the Entity class.

Parameters
$insertedEntities
Returns
string

◆ getColumnFormatters()

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

◆ getMapper()

Faker\ORM\Spot\EntityPopulator::getMapper ( )
Returns
string

◆ getModifiers()

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

◆ guessColumnFormatters()

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

◆ mergeColumnFormattersWith()

Faker\ORM\Spot\EntityPopulator::mergeColumnFormattersWith (   $columnFormatters)
Parameters
$columnFormatters

◆ mergeModifiersWith()

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

◆ setColumnFormatters()

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

◆ setModifiers()

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

Member Data Documentation

◆ RELATED_FETCH_COUNT

const Faker\ORM\Spot\EntityPopulator::RELATED_FETCH_COUNT = 10

When fetching existing data - fetch only few first rows.


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