SilverStripe 3.1 ListboxField save array to database
问题 I want to know how to correctly save values selected with a ListboxField. new ListboxField( $name = "Categorie", $title = "Catégorie(s)", Categories::get()->map('ID','Title'), $value = 1, $size = 4, $multiple = true ); In my example, I can save more than one category to a $db field. I am using: private static $db = array( 'Categorie' => 'Varchar' ); It works, but when I'm trying to get back categories names into a template it dosen't work at all. The data stored for example is "1,4,9" . Is