class EntityPopulator

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

Methods

__construct( ClassMetadata $class)

Class constructor.

string
getClass()

No description

setColumnFormatters($columnFormatters)

No description

array
getColumnFormatters()

No description

mergeColumnFormattersWith($columnFormatters)

No description

setModifiers( array $modifiers)

No description

array
getModifiers()

No description

mergeModifiersWith( array $modifiers)

No description

array
guessColumnFormatters( Generator $generator)

No description

execute( ObjectManager $manager, $insertedEntities, $generateId = false)

Insert one new record using the Entity class.

Details

__construct( ClassMetadata $class)

Class constructor.

Parameters

ClassMetadata $class

string getClass()

Return Value

string

setColumnFormatters($columnFormatters)

Parameters

$columnFormatters

array getColumnFormatters()

Return Value

array

mergeColumnFormattersWith($columnFormatters)

Parameters

$columnFormatters

setModifiers( array $modifiers)

Parameters

array $modifiers

array getModifiers()

Return Value

array

mergeModifiersWith( array $modifiers)

Parameters

array $modifiers

array guessColumnFormatters( Generator $generator)

Parameters

Generator $generator

Return Value

array

EntityPopulator execute( ObjectManager $manager, $insertedEntities, $generateId = false)

Insert one new record using the Entity class.

Parameters

ObjectManager $manager
$insertedEntities
$generateId

Return Value

EntityPopulator