public function createAction()
 {
     if ($this->request->isPost()) {
         $user = new Category();
         $user->setName($this->getRequest()->getPost('name'));
         $this->getObjectManager()->persist($user);
         $this->getObjectManager()->flush();
         return $this->redirect()->toRoute('category-list');
     }
     return new ViewModel(array('title' => 'Ajouter une catégorie'));
 }
 /**
  * {@inheritDoc}
  */
 public function setArticle($article)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setArticle', array($article));
     return parent::setArticle($article);
 }