nextras / dbal

Database Abstraction Layer – concise secure API to construct queries & fetch data
https://nextras.org/dbal
MIT License
79 stars 28 forks source link

BackedEnum support for i, i[], s, s[] #187

Closed mrceperka closed 2 years ago

hrach commented 2 years ago

Did you consider

if ($value is \BackedEnum) {
     $value = $value->value;
}

at the beginning of processing? This is probably the way I would choose - reusing current infra.

mrceperka commented 2 years ago

Can do, will update ASAP.

Error messages will be probably less verbose, but the code is cleaner.

mrceperka commented 2 years ago

@hrach can u run the CI again please? :D

hrach commented 2 years ago

Thank you!