25 lines
554 B
PHP
25 lines
554 B
PHP
|
<?php
|
|||
|
|
|||
|
namespace Deblan\Bundle\BlogBundle\Form\Type;
|
|||
|
|
|||
|
use Propel\PropelBundle\Form\BaseAbstractType;
|
|||
|
use Symfony\Component\Form\FormBuilderInterface;
|
|||
|
|
|||
|
class GroupType extends BaseAbstractType
|
|||
|
{
|
|||
|
protected $options = array(
|
|||
|
'data_class' => 'Deblan\Bundle\BlogBundle\Model\Group',
|
|||
|
'name' => 'group',
|
|||
|
);
|
|||
|
|
|||
|
/**
|
|||
|
* {@inheritdoc}
|
|||
|
*/
|
|||
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
|||
|
{
|
|||
|
$builder->add('code');
|
|||
|
$builder->add('name');
|
|||
|
$builder->add('roles');
|
|||
|
}
|
|||
|
}
|