Skip to content

Commit 02d76d9

Browse files
Add multiple format support for resolve entity
Add doc to option resolveTargetEntityConfigType option which allows to change the file type to YAML (or other formats eventually).
1 parent 29bffd0 commit 02d76d9

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
@@ -456,13 +456,20 @@ mappings.
456456
If you set the option `useInterface` to true, the generator will generate an interface corresponding to each generated
457457
entity and will use them in relation mappings.
458458

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

461461
```yaml
462462
doctrine:
463463
resolveTargetEntityConfigPath: path/to/doctrine.xml
464464
```
465465

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+
466473
## Custom Schemas
467474

468475
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)