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 [