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

Public Member Functions

 __construct ($class)
 
 getClass ()
 
 setColumnFormatters ($columnFormatters)
 
 getColumnFormatters ()
 
 mergeColumnFormattersWith ($columnFormatters)
 
 guessColumnFormatters (\Faker\Generator $generator)
 
 setModifiers ($modifiers)
 
 getModifiers ()
 
 mergeModifiersWith ($modifiers)
 
 guessModifiers (\Faker\Generator $generator)
 
 execute ($con, $insertedEntities)
 

Protected Member Functions

 isColumnBehavior (ColumnMap $columnMap)
 

Protected Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

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

Class constructor.

Parameters
string$classA Propel ActiveRecord classname

Member Function Documentation

◆ execute()

Faker\ORM\Propel\EntityPopulator::execute (   $con,
  $insertedEntities 
)

Insert one new record using the Entity class.

◆ getClass()

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

◆ getColumnFormatters()

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

◆ getModifiers()

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

◆ guessColumnFormatters()

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

◆ guessModifiers()

Faker\ORM\Propel\EntityPopulator::guessModifiers ( \Faker\Generator  $generator)
Parameters
\Faker\Generator$generator
Returns
array

◆ isColumnBehavior()

Faker\ORM\Propel\EntityPopulator::isColumnBehavior ( ColumnMap  $columnMap)
protected
Parameters
ColumnMap$columnMap
Returns
bool

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