We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7366f73 commit d193e7bCopy full SHA for d193e7b
docs/tutorial/custom-types.txt
@@ -4,6 +4,12 @@ Custom Data-Types
4
5
.. default-domain:: mongodb
6
7
+.. note::
8
+
9
+ This tutorial explains implementing custom data types using the :php:`MongoDB\\BSON\\Persistable <class.mongodb-bson-persistable>`
10
+ interface found in the MongoDB extension. Consider using a codec instead to decouple the MongoDB persistence logic
11
+ from your business logic. See the :doc:`Codec tutorial </tutorial/codecs>` for an example.
12
13
The MongoDB PHP extension and library support custom classes while
14
serializing and deserializing. An example of where this might be useful is
15
if you want to store date/time information retaining the time zone
0 commit comments