Example #1
0
 public function buildTable(\EMC\TableBundle\Table\TableBuilderInterface $builder, array $options)
 {
     parent::buildTable($builder, $options);
     if ($this->add) {
         $builder->add('id', 'text', array('params' => array('id')))->add('name', 'text', array('params' => array('name')));
     }
 }
Example #2
0
 public function buildTable(TableBuilderInterface $builder, array $options)
 {
     parent::buildTable($builder, $options);
     $builder->add('id', 'text', array('title' => 'ID', 'params' => array('id')))->add('name', 'text', array('title' => 'Name', 'params' => array('name')));
 }