Exemplo n.º 1
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->addProperty(new \morph\property\String('Username'))
          ->addProperty(new \morph\property\File('Avatar'));
 }
Exemplo n.º 2
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->addProperty(new \morph\property\String('Name'), 'n');
 }
Exemplo 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'));
 }
Exemplo n.º 4
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     $this->connect();
 }