public function __construct($id = null) { parent::__construct($id); $this->addProperty(new \morph\property\String('Username')) ->addProperty(new \morph\property\File('Avatar')); }
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')); }
public function __construct($id = null) { parent::__construct($id); $this->connect(); }