-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbToPhp.cfg.php
38 lines (37 loc) · 1.09 KB
/
dbToPhp.cfg.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
return [
'typeHint' => true,
'databaseDriver' => kristijorgji\DbToPhp\DatabaseDrivers::MYSQL,
'connection' => [
'host' => '192.168.66.7',
'port' => 3306,
'database' => 'test_db_to_php',
'username' => 'root',
'password' => 'Test123@',
],
'entities' => [
'includeTables' => ['*'],
'tableToEntityClassName' => [
'test' => 'SuperEntity'
],
'outputDirectory' => 'Entities',
'namespace' => 'Entities',
'includeAnnotations' => true,
'includeSetters' => true,
'includeGetters' => true,
'fluentSetters' => true,
'properties' => [
'accessModifier' => \kristijorgji\DbToPhp\Rules\Php\PhpAccessModifiers::PRIVATE
],
'trackChangesFor' => []
],
'factories' => [
'includeTables' => ['*'],
'tableToEntityFactoryClassName' => [
'test' => 'SuperEntityFactory'
],
'outputDirectory' => 'Factories/Entities',
'namespace' => 'Factories\Entities',
'includeAnnotations' => true
]
];