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