-
-
Notifications
You must be signed in to change notification settings - Fork 71
feat: add jsonb_document type for DBAL 4.3.0+ #155
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
base: main
Are you sure you want to change the base?
Conversation
New jsonb_document type leveraging native DBAL JsonbType. Shared serialization logic extracted into JsonDocumentTypeTrait. Type is conditionally registered when DBAL 4.3.0+ is available.
34ad85f to
3532d76
Compare
Move ProductJsonb entity to separate directory with conditional mapping. Enable native lazy objects for PHP 8.4+ compatibility.
0fe6963 to
f327692
Compare
f327692 to
d679dc7
Compare
|
@dunglas I tried something here, not sure it is the right think to do. |
tests/FunctionalTest.php
Outdated
|
|
||
| namespace Dunglas\DoctrineJsonOdm\Tests; | ||
|
|
||
| use Doctrine\DBAL\Types\JsonbType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this class is not used in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes totaly, good catch
Adds a new
jsonb_documentDoctrine type that leverages DBAL 4.3.0+ nativeJsonbType.The type is conditionally registered only when DBAL 4.3.0+ is available, ensuring backward compatibility.
Shared serialization logic has been extracted into a trait to avoid duplication.
Closes #152
This is my first contribution to this project, hope I did it right! 🙂