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