Merge pull request #3111 from dassio/entity_addtype

add example for type annotation
This commit is contained in:
Morris Jobke 2020-08-20 08:10:41 +02:00 committed by GitHub
commit b38dc5222c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 [