/**
  * Save a acceptance criteria
  *
  * @param Newscoop\Entity\Comment\Acceptance $p_acceptance
  * @param array $p_values
  * @return void
  */
 public function save(Acceptance $p_acceptance, array $p_values)
 {
     $em = $this->getEntityManager();
     if (is_numeric($p_values['forum'])) {
         $publicationRepository = $em->getRepository('Newscoop\\Entity\\Publication');
         $forum = $publicationRepository->find($p_values['forum']);
     } else {
         $forum = $p_values['forum'];
     }
     $p_acceptance->setSearch($p_values['search'])->setSearchType($p_values['search_type'])->setType($p_values['type'])->setForColumn($p_values['for_column']);
     if (!is_null($forum)) {
         $p_acceptance->setForum($forum);
     }
     $em->persist($p_acceptance);
 }
 public function getSearchType()
 {
     $this->__load();
     return parent::getSearchType();
 }