Skip to content

Support MySQL datatype SET #330

@mikehaertl

Description

@mikehaertl

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
Fund with Polar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions