i am doing app, where i use SQL and i want to save checkbox values in one column. i am doing it like this:
/**
* @Assert\NotBlank(
* message="please select!")
* @Assert\NotNull(
* message="please select!")
* @Assert\Range(min=0, max=9)
* @ORM\Column(type="integer")
*/
protected $ingredients;
public static function getIngredientsOptions(){
return array('cheese','tomatoes','salami','onions','mushroom','bacon','ham','vegetables','peppers','olives');
}
but i get error which says that i have SELECT error, i think problem is with checkbox. is this correct? can you help me how to this ?