class Brief{
.....
public functioon getCategory()
{
return $this->categories;
}
public functioon setCategory( $category )
{
$this->categories->clear(); // если надо
$this->addCategory( $category );
}
}
class BriefType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
......
$builder->add( 'category', 'entity', array(
.......
) );
}
}