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 @@ -456,13 +456,20 @@ mappings.
456
456
If you set the option `useInterface` to true, the generator will generate an interface corresponding to each generated
457
457
entity and will use them in relation mappings.
458
458
459
- To let PHP Schema generate the XML mapping file usable with Symfony, add the following to your config file :
459
+ To let PHP Schema generate the mapping file usable with Symfony, add the following to your config file :
460
460
461
461
` ` ` yaml
462
462
doctrine:
463
463
resolveTargetEntityConfigPath: path/to/doctrine.xml
464
464
` ` `
465
465
466
+ The default mapping file format is XML, but you can change it to YAML with the following option :
467
+ ` ` ` yaml
468
+ doctrine:
469
+ resolveTargetEntityConfigPath: path/to/doctrine.yaml
470
+ resolveTargetEntityConfigType: YAML # Supports XML & YAML
471
+ ` ` `
472
+
466
473
# # Custom Schemas
467
474
468
475
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