/** * Get the nested associative array that is used for post * @param array $field_names. Array of string, the field names we wish to query. Defaults to null in which we case we get all fields * @param boolean $skip_invalid. Defaults to true in which case we skip invalid values * @param boolean $include_id defaults to true * @return array */ public function getPost($field_names = null, $skip_invalid = true, $include_id = true) { $post = parent::getPost($field_names, $skip_invalid, $include_id); if (!$this->parentIsSet()) { $post['fields']['parent'] = $this->getParent(); } return $post; }