mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Merge pull request #3111 from dassio/entity_addtype
add example for type annotation
This commit is contained in:
commit
b38dc5222c
@ -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 [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user