public function create(array $data, MembershipInterface $author, ModelInterface $category): PodiumResponse
    {
        /* @var $forumForm CategorisedFormInterface */
        $forumForm = $this->getForm();

        $forumForm->setAuthor($author);
        $forumForm->setCategory($category);

        if (!$forumForm->loadData($data)) {
            return PodiumResponse::error();
        }

        return $forumForm->create();
    }
public function create(array $data, MembershipInterface $author, ModelInterface $category): PodiumResponse
    {
        /* @var $forumForm CategorisedFormInterface */
        $forumForm = $this->getForm();

        $forumForm->setAuthor($author);
        $forumForm->setCategory($category);

        if (!$forumForm->loadData($data)) {
            return PodiumResponse::error();
        }

        return $forumForm->create();
    }
public function create ( array $ data , MembershipInterface $ author , ModelInterface $ category ) : PodiumResponse { /* @var $forumForm CategorisedFormInterface */ $ forumForm = $ this -> getForm ( ) ; $ forumForm -> setAuthor ( $ author ) ; $ forumForm -> setCategory ( $ category ) ; if ( ! $ forumForm -> loadData ( $ data ) ) { return PodiumResponse :: error ( ) ; } return $ forumForm -> create ( ) ; }
Creates forum.
@param array $data
@param MembershipInterface $author
@param ModelInterface $category
@return PodiumResponse
Creates forum .