Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

method 'onOpenThreadSuccess' in the 'ThreadController' #619

Open
rimoi opened this issue Oct 26, 2017 · 0 comments
Open

method 'onOpenThreadSuccess' in the 'ThreadController' #619

rimoi opened this issue Oct 26, 2017 · 0 comments

Comments

@rimoi
Copy link

rimoi commented Oct 26, 2017

hi,

Why in the ThreadController the value is : 'value' => !$form->getData()->isCommentable() instead of 'value' => $form->getData()->isCommentable()

   /**
    * Forwards the action to the open thread edit view on a successful form submission.
    *
    * @param FormInterface $form
    *
    * @return View
    */
   protected function onOpenThreadSuccess(FormInterface $form)
   {
       return View::createRouteRedirect('fos_comment_edit_thread_commentable', array('id' => $form->getData()->getId(), 'value' => !$form->getData()->isCommentable()));
   }

Because i overload the controller 'ThreadController', and i want to be able to store in my thread entity the author who has closed the thread.
And because of it previous method I have in small problem 😠

Thanks 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant