/**
  * {@inheritdoc}
  */
 protected function processValue($key, $value)
 {
     $keys_make_int = ['job_id', 'created', 'changed'];
     if (in_array($key, $keys_make_int)) {
         $value = (int) $value;
     }
     return parent::processValue($key, $value);
 }
 /**
  * {@inheritdoc}
  */
 protected function processValue($key, $value)
 {
     $keys_make_int = ['item_id'];
     if ($key == 'host_entity') {
         unset($value->uri);
     } elseif ($key == 'field_organization_reference') {
         unset($value->uri);
         unset($value->resource);
     } elseif (in_array($key, $keys_make_int)) {
         $value = (int) $value;
     }
     return parent::processValue($key, $value);
 }
 /**
  * {@inheritdoc}
  */
 protected function processValue($key, $value)
 {
     $keys_make_int = ['item_id', 'field_release_file_downloads'];
     if ($key == 'host_entity') {
         unset($value->uri);
     } elseif ($key == 'field_release_file' && isset($value->file)) {
         unset($value->file->uri);
         unset($value->file->resource);
     } elseif (in_array($key, $keys_make_int)) {
         $value = (int) $value;
     }
     return parent::processValue($key, $value);
 }
 /**
  * {@inheritdoc}
  */
 protected function processValue($key, $value)
 {
     if ($key == 'parent') {
         unset($value->uri);
         unset($value->resource);
     } elseif ($key == 'parents_all') {
         foreach ($value as $i => $item) {
             unset($value[$i]->uri);
             unset($value[$i]->resource);
         }
     } elseif ($key == 'tid') {
         $value = (int) $value;
     }
     return parent::processValue($key, $value);
 }
 /**
  * {@inheritdoc}
  */
 protected function processValue($key, $value)
 {
     $keys_files = ['upload', 'field_project_images', 'field_issue_files'];
     $keys_nullify = ['body', 'field_project_issue_guidelines', 'field_contributions', 'field_organization_training_desc', 'field_developed', 'field_goals', 'field_module_selection', 'field_overview'];
     $keys_references = ['author', 'book', 'field_release_project', 'book_ancestors', 'field_release_files', 'comments', 'field_module'];
     $keys_make_int = ['nid', 'field_download_count', 'created', 'changed', 'comment_count', 'comment_count_new'];
     $keys_make_bool = ['status', 'promote', 'sticky'];
     if (strpos($key, "taxonomy_vocabulary_") === 0) {
         if (is_array($value)) {
             foreach ($value as $i => $term_item) {
                 $this->terms[$term_item->id] = (int) $term_item->id;
                 unset($value[$i]->uri);
                 unset($value[$i]->resource);
             }
         } else {
             $this->terms[$value->id] = (int) $value->id;
             unset($value->uri);
             unset($value->resource);
         }
     } elseif (in_array($key, $keys_nullify)) {
         $value = null;
     } elseif (in_array($key, $keys_references)) {
         if (is_array($value)) {
             foreach ($value as $i => $item) {
                 if ($key == 'field_release_files') {
                     $this->releases[$item->id] = $item->id;
                 }
                 unset($value[$i]->uri);
                 unset($value[$i]->resource);
             }
         } else {
             unset($value->uri);
             unset($value->resource);
         }
     } elseif (in_array($key, $keys_files)) {
         foreach ($value as $i => $item) {
             if (isset($value[$i]->file)) {
                 unset($value[$i]->file->uri);
                 unset($value[$i]->file->resource);
             }
         }
     } elseif (in_array($key, $keys_make_int)) {
         $value = (int) $value;
     } elseif (in_array($key, $keys_make_bool)) {
         $value = (bool) $value;
     }
     return parent::processValue($key, $value);
 }
 /**
  * {@inheritdoc}
  */
 protected function processValue($key, $value)
 {
     $keys_references = ['field_organizations', 'field_areas_of_expertise', 'field_mentors'];
     $keys_make_int = ['uid', 'created'];
     if (in_array($key, $keys_references)) {
         $value = (array) $value;
         foreach ($value as $i => $item) {
             if ($key == 'field_organizations') {
                 $this->organizations[$item->id] = $item->id;
             }
             unset($value[$i]->uri);
             unset($value[$i]->resource);
         }
     } elseif (in_array($key, $keys_make_int)) {
         $value = (int) $value;
     }
     return parent::processValue($key, $value);
 }