public function __construct($id = null) { parent::__construct($id); $this->addProperty(new Morph_Property_String('userName')) ->addProperty(new Morph_Property_String('firstName')) ->addProperty(new Morph_Property_String('lastName')) ->addProperty(new Morph_Property_Date('dateOfBirth')) ->addProperty(new Morph_Property_Integer('numberOfPosts', 0)); }
public function __construct($id = null) { parent::__construct($id); $this->addProperty(new Morph_Property_Generic('TestField')); }
public function __construct($id = null) { parent::__construct($id); $this->addProperty(new Morph_Property_String('title'))->addProperty(new Morph_Property_String('author'))->addProperty(new Morph_Property_Integer('pageNumber'))->addProperty(new Morph_Property_Date('publishedDate')); }