-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
Description
A MySQL SET datatype should be mapped to an array. This would make it much easier to use in forms, e.g. in a checkboxList(). For now as a developer I have to write getter/setter which do the conversion between a csv string and an array.
public function getUserCountries()
{
return explode(',', $this->user_countries);
}
public function setUserCountries($value)
{
$this->user_countries = is_array($value) ? implode(',', $value) : '';
}
Funding
- You can sponsor this specific effort via a Polar.sh pledge below
- We receive the pledge once the issue is completed & verified