Skip to content

Commit 1064834

Browse files
committed
Adding configuration about naming to Symfony doc
1 parent 86afc57 commit 1064834

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

doc/install_symfony.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,30 @@ If your default namespace for your application is not <code>App</code>, you shou
3333

3434
You can also use the `config/packages/tdbm.yaml` file to customize the naming of beans and DAOs.
3535

36+
Here is a configuration file with all available options:
37+
38+
**config/packages/tdbm.yaml**
39+
```yaml
40+
tdbm:
41+
bean_namespace: App\Beans
42+
dao_namespace: App\Daos
43+
# The naming section is completely optional
44+
naming:
45+
bean_prefix: ""
46+
bean_suffix: ""
47+
base_bean_prefix: Abstract
48+
base_bean_suffix: ""
49+
dao_prefix: ""
50+
dao_suffix: Dao
51+
base_dao_prefix: Abstract
52+
base_dao_suffix: Dao
53+
# Exceptions are used to transform a table name (the key) into a bean name (the value)
54+
# Very useful if your database table names are not in english
55+
# (as TDBM will try to turn plural table names into singular bean names)
56+
exceptions:
57+
chevaux: Cheval
58+
```
59+
3660
## Generating beans and DAOs
3761
3862
When installation is done, you need to generate DAOs and beans from your data model.

0 commit comments

Comments
 (0)