/** * Metodo que agrega las relaciones post-categoría. * @param PostCategory $postCategory */ public function addPostCategory(PostCategory $postCategory) { $this->postsID[$postCategory->getCategoryID()][] = $postCategory->getPostID(); $this->categoriesID[$postCategory->getPostID()][] = $postCategory->getCategoryID(); }