Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 637 Bytes

File metadata and controls

33 lines (26 loc) · 637 Bytes

Extends form

<?php

namespace AppBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;

use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Doctrine\ORM\EntityRepository;

class NewsType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        // You can update form here with $builder
        // Ex: $builder->add();
    }

    public function getParent()
    {
        return 'Tleroch\NewsBundle\Form\NewsType';
    }

    public function getBlockPrefix()
    {
        return 'app_news_form';
    }
}