| 1 | <?php |
||
| 20 | class MySQLDataFactory implements DataFactoryInterface |
||
| 21 | { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Holds the Doctrine DBAL instance. |
||
| 25 | * @var Connection |
||
| 26 | */ |
||
| 27 | protected $database; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Flag whether to use UUIDs as primary key. |
||
| 31 | * @var bool |
||
| 32 | */ |
||
| 33 | protected $useUUIDs; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Constructor. |
||
| 37 | * |
||
| 38 | * @param $database |
||
| 39 | * the Doctrine DBAL instance |
||
| 40 | * @param $useUUIDs |
||
| 41 | * flag whether to use UUIDs as primary key |
||
| 42 | */ |
||
| 43 | 81 | public function __construct(Connection $database, $useUUIDs = false) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | 79 | public function createData(EntityDefinition $definition, FilesystemInterface $filesystem) |
|
| 56 | |||
| 57 | } |
||
| 58 |