示例#1
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->addProperty(new \morph\property\String('Username'))
          ->addProperty(new \morph\property\File('Avatar'));
 }
示例#2
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->addProperty(new \morph\property\String('Name'), 'n');
 }
示例#3
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->addProperty(new \morph\property\HasMany('Children', 'Child'));
     $this->addProperty(new \morph\property\String('Name'));
 }
示例#4
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->connect();
 }