From 377647ed6895007cd1429a895f1e06720a95b188 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 9 Nov 2022 12:32:52 +0100 Subject: [PATCH] Document datetime support for the Entity class Signed-off-by: Joas Schilling --- developer_manual/basics/storage/database.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/developer_manual/basics/storage/database.rst b/developer_manual/basics/storage/database.rst index 90519e9c2..20b28ff49 100644 --- a/developer_manual/basics/storage/database.rst +++ b/developer_manual/basics/storage/database.rst @@ -198,9 +198,13 @@ The following properties should be annotated by types, to not only assure that t The following types can be added for a field: -* integer -* float -* boolean +* ``integer`` +* ``float`` +* ``boolean`` +* ``string`` - For text and string columns +* ``blob`` - For binary data or strings longer than +* ``json`` - JSON data is automatically decoded on reading +* ``datetime`` - Providing ``\DateTime()`` objects Accessing attributes ^^^^^^^^^^^^^^^^^^^^