map jsonb to object vice versa #6241

Closed
opened 2026-01-22 15:29:25 +01:00 by admin · 1 comment
Owner

Originally created by @videni on GitHub (May 19, 2019).

Originally assigned to: @Ocramius on GitHub.

Save a plain object using jsonb, when fetch it out, it is automatically mapped to that object again. doctrine-json-odm is a solution, but it is better to use object table mapping instead of serializer.

features required:

  1. Define index fo jsonb
  2. automatically transform object to jsonb vice versa.
Originally created by @videni on GitHub (May 19, 2019). Originally assigned to: @Ocramius on GitHub. Save a plain object using jsonb, when fetch it out, it is automatically mapped to that object again. [doctrine-json-odm](https://github.com/dunglas/doctrine-json-odm) is a solution, but it is better to use object table mapping instead of serializer. features required: 1. Define index fo jsonb 2. automatically transform object to jsonb vice versa.
admin added the New FeatureWon't Fix labels 2026-01-22 15:29:25 +01:00
admin closed this issue 2026-01-22 15:29:25 +01:00
Author
Owner

@Ocramius commented on GitHub (May 19, 2019):

JSONB is vendor-specific, and we cannot build ORM features for it unless iall other vendors also support it.

Closing as won't fix: as much as I'd love to basically tell people "just use PostgreSQL", this is not the project where that can be proposed.

@Ocramius commented on GitHub (May 19, 2019): JSONB is vendor-specific, and we cannot build ORM features for it unless iall other vendors also support it. Closing as `won't fix`: as much as I'd love to basically tell people "just use PostgreSQL", this is not the project where that can be proposed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6241