From 7eac51fbbf87f894fa30d227c02f8ba669e174a2 Mon Sep 17 00:00:00 2001 From: dassio Date: Wed, 19 Aug 2020 22:02:50 +0100 Subject: [PATCH] add example for type annotattion Signed-off-by: dassio --- developer_manual/app_development/tutorial.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/developer_manual/app_development/tutorial.rst b/developer_manual/app_development/tutorial.rst index 035c8f556..8b045dc0e 100644 --- a/developer_manual/app_development/tutorial.rst +++ b/developer_manual/app_development/tutorial.rst @@ -302,6 +302,10 @@ Now that the tables are created we want to map the database result to a PHP obje protected $title; protected $content; protected $userId; + + public function __construct() { + $this->addType('id','integer'); + } public function jsonSerialize() { return [