public function toInsertableObject($object_to_fill = null, $props_to_skip = array()) { $dbObj = parent::toInsertableObject($object_to_fill, $props_to_skip); $this->setType(); return $dbObj; }