Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luzrain/doctrine-json-unescaped-type
Preventing json Doctrine type to escape unicode characters.
https://github.com/luzrain/doctrine-json-unescaped-type
Last synced: 8 days ago
JSON representation
Preventing json Doctrine type to escape unicode characters.
- Host: GitHub
- URL: https://github.com/luzrain/doctrine-json-unescaped-type
- Owner: luzrain
- Created: 2021-02-01T08:25:52.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-01T09:24:33.000Z (almost 4 years ago)
- Last Synced: 2024-11-06T20:07:12.673Z (about 2 months ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Doctrine json type unescaped
By default json Doctrine types escape unicode characters before storing strings in the database.
JsonUnescapedType override default JsonType to prevent this.#### Symfony integration
```yaml
# config/packages/doctrine.yaml
doctrine:
dbal:
types:
json: Luzrain\DoctrineJsonUnescapedType\JsonUnescapedType
```