Skip to content

Commit 970a071

Browse files
Merge pull request #1444 from TheArrowRichard/patch-1
Add multiple format support for resolve entity
2 parents 3acda54 + 02d76d9 commit 970a071

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

schema-generator/configuration.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,20 @@ mappings.
481481
If you set the option `useInterface` to true, the generator will generate an interface corresponding to each generated
482482
entity and will use them in relation mappings.
483483

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:
485485

486486
```yaml
487487
doctrine:
488488
resolveTargetEntityConfigPath: path/to/doctrine.xml
489489
```
490490

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+
491498
## Custom Schemas
492499

493500
The generator can use your own schema definitions. They must be written in RDFa and follow the format of the [Schema.org's

0 commit comments

Comments
 (0)