symfony - Type of choice field Symfony2 -
i try save values of 1 - 3 checkboxes in field category in database, error : notice: array string conversion in /var/www/ontheway/vendor/doctrine/dbal/lib/doctrine/dbal/statement.php line 120 the field: /** * @orm\column(type="string", length=255, nullable=true) */ private $category; get & set: /** * @return mixed */ public function getcategory() { return $this->category; } /** * @param $category */ public function setcategory($category) { $this->category[] = $category; } profile type: namespace vputi\userbundle\form\type; use symfony\component\form\abstracttype; use symfony\component\form\formbuilderinterface; use symfony\component\optionsresolver\optionsresolverinterface; class profiletype extends abstracttype { public function buildform(formbuilderinterface $builder, array $options) { $builder->add('fio'); $builder->add('birthdate', null, array('widget' => 'sing...