/** * Save data for product relations * * @param EM_Blog_Model_Post $post * @return EM_Blog_Model_Post_Link */ public function saveProductRelations($post) { $data = $post->getRelatedLinkData(); if (!is_null($data)) { $this->_getResource()->saveProductLinks($post, $data, self::LINK_TYPE_RELATED); } return $this; }