protected function do_create_array(Model $obj)
 {
     $batch = array();
     $user = $obj->get_creator();
     if ($user !== null) {
         $batch['post_author'] = $user->get_id();
     }
     $batch['post_date'] = $obj->get_date();
     $batch['post_date_gmt'] = $obj->get_date_gmt();
     $batch['post_content'] = '';
     $batch['post_title'] = $obj->get_title();
     $batch['post_status'] = $obj->get_status();
     $batch['comment_status'] = 'closed';
     $batch['ping_status'] = 'closed';
     $batch['post_modified'] = $obj->get_modified();
     $batch['post_modified_gmt'] = $obj->get_modified_gmt();
     $batch['guid'] = $obj->get_guid();
     $batch['post_type'] = 'sme_content_batch';
     return $batch;
 }
 /**
  * @param Model $obj
  * @return array
  */
 protected function do_create_array(Model $obj)
 {
     $parent = 0;
     if ($obj->get_parent() !== null) {
         $parent = $obj->get_parent()->get_id();
     }
     return array('post_author' => $obj->get_author(), 'post_date' => $obj->get_date(), 'post_date_gmt' => $obj->get_date_gmt(), 'post_content' => $obj->get_content(), 'post_title' => $obj->get_title(), 'post_excerpt' => $obj->get_excerpt(), 'post_status' => $obj->get_post_status(), 'comment_status' => $obj->get_comment_status(), 'ping_status' => $obj->get_ping_status(), 'post_password' => $obj->get_password(), 'post_name' => $obj->get_name(), 'to_ping' => $obj->get_to_ping(), 'pinged' => $obj->get_pinged(), 'post_modified' => $obj->get_modified(), 'post_modified_gmt' => $obj->get_modified_gmt(), 'post_content_filtered' => $obj->get_content_filtered(), 'post_parent' => $parent, 'guid' => $obj->get_guid(), 'menu_order' => $obj->get_menu_order(), 'post_type' => $obj->get_type(), 'post_mime_type' => $obj->get_mime_type(), 'comment_count' => $obj->get_comment_count());
 }