Skip to content

Add multiple format support for resolve entity #1444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion schema-generator/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,20 @@ mappings.
If you set the option `useInterface` to true, the generator will generate an interface corresponding to each generated
entity and will use them in relation mappings.

To let PHP Schema generate the XML mapping file usable with Symfony, add the following to your config file:
To let PHP Schema generate the mapping file usable with Symfony, add the following to your config file:

```yaml
doctrine:
resolveTargetEntityConfigPath: path/to/doctrine.xml
```

The default mapping file format is XML, but you can change it to YAML with the following option:
```yaml
doctrine:
resolveTargetEntityConfigPath: path/to/doctrine.yaml
resolveTargetEntityConfigType: YAML # Supports XML & YAML
```

## Custom Schemas

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