File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -481,13 +481,20 @@ mappings.
481
481
If you set the option `useInterface` to true, the generator will generate an interface corresponding to each generated
482
482
entity and will use them in relation mappings.
483
483
484
- To let PHP Schema generate the XML mapping file usable with Symfony, add the following to your config file :
484
+ To let PHP Schema generate the mapping file usable with Symfony, add the following to your config file :
485
485
486
486
` ` ` yaml
487
487
doctrine:
488
488
resolveTargetEntityConfigPath: path/to/doctrine.xml
489
489
` ` `
490
490
491
+ The default mapping file format is XML, but you can change it to YAML with the following option :
492
+ ` ` ` yaml
493
+ doctrine:
494
+ resolveTargetEntityConfigPath: path/to/doctrine.yaml
495
+ resolveTargetEntityConfigType: YAML # Supports XML & YAML
496
+ ` ` `
497
+
491
498
# # Custom Schemas
492
499
493
500
The generator can use your own schema definitions. They must be written in RDFa and follow the format of the [Schema.org's
You can’t perform that action at this time.
0 commit comments