Ejemplo n.º 1
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('competence', 'entity', array('class' => 'SdzBlogBundle:Competence'))->add('niveau', 'choice', array('choices' => ArticleCompetence::getNiveaux()));
 }
Ejemplo n.º 2
0
 /**
  * Add competenceArticles
  *
  * @param \Sdz\BlogBundle\Entity\ArticleCompetence $competenceArticles
  * @return Article
  */
 public function addCompetenceArticle(\Sdz\BlogBundle\Entity\ArticleCompetence $competenceArticles)
 {
     $this->competenceArticles[] = $competenceArticles;
     $competenceArticles->setArticle($this);
     return $this;
 }
Ejemplo n.º 3
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('competence', EntityType::class, array('class' => Competence::class))->add('niveau', ChoiceType::class, array('choices' => ArticleCompetence::getNiveaux()));
 }