PHP Class CRUDlex\MySQLDataFactory

Inheritance: implements crudlex\DataFactoryInterface
Show file Open project: philiplb/crudlex

Protected Properties

Property Type Description
$database Holds the Doctrine DBAL instance.
$useUUIDs Flag whether to use UUIDs as primary key.

Public Methods

Method Description
__construct ( $database, $useUUIDs = false ) Constructor.
createData ( EntityDefinition $definition, crudlex\FileProcessorInterface $fileProcessor )

Method Details

__construct() public method

Constructor.
public __construct ( $database, $useUUIDs = false )
$database the Doctrine DBAL instance
$useUUIDs flag whether to use UUIDs as primary key

createData() public method

public createData ( EntityDefinition $definition, crudlex\FileProcessorInterface $fileProcessor )
$definition EntityDefinition
$fileProcessor crudlex\FileProcessorInterface

Property Details

$database protected property

Holds the Doctrine DBAL instance.
protected $database

$useUUIDs protected property

Flag whether to use UUIDs as primary key.
protected $useUUIDs