public function populateFromObject($object, $add_underscore = true)
 {
     parent::populateFromObject($object, $add_underscore);
     if ($object instanceof KalturaGenericDistributionProfile) {
         $this->populateFromActionObject($object, 'submit', $add_underscore);
         $this->populateFromActionObject($object, 'update', $add_underscore);
         $this->populateFromActionObject($object, 'delete', $add_underscore);
         $this->populateFromActionObject($object, 'report', $add_underscore, 'fetchReportAction');
         $entryFields = array_keys($this->getEntryFields());
         $metadataXpaths = array_keys($this->getMetadataFields());
         $updateRequiredEntryFields = explode(',', $object->updateRequiredEntryFields);
         $updateRequiredMetadataXPaths = explode(',', $object->updateRequiredMetadataXPaths);
         foreach ($updateRequiredEntryFields as $entryField) {
             $index = array_search($entryField, $entryFields);
             if ($index !== false) {
                 $this->setDefault("update_required_entry_fields_{$index}", true);
             }
         }
         foreach ($updateRequiredMetadataXPaths as $metadataXpath) {
             $index = array_search($metadataXpath, $metadataXpaths);
             if ($index !== false) {
                 $this->setDefault("update_required_metadata_xpaths_{$index}", true);
             }
         }
     }
 }
 public function populateFromObject($object, $add_underscore = true)
 {
     parent::populateFromObject($object, $add_underscore);
     $this->addFieldConfigArray($object->fieldConfigArray);
     $this->addItemXpathsToExtend($object->itemXpathsToExtend);
 }