CraueConfigBundle icon indicating copy to clipboard operation
CraueConfigBundle copied to clipboard

Possibility to have settings of different types

Open Zoopme opened this issue 7 years ago • 4 comments

Hello,

This bundle allows creating a custom entity for settings which makes it possible to override data type.

However, it does not seem possible to use more than one data type in an application using this bundle.

I would be very helpful if one was able to create several settings of different types (eg. setting1 => date, setting2 => string of 255 char, setting3 => text rendered in a textarea, etc.).

So it seems that instead of creating a custom entity, we would be looking at having a field containing the datatype of the parameter.

Regards,

Zoopme avatar Jul 13 '17 21:07 Zoopme

If you want (or someone else wants) to work on such feature, feel free to create a PR. 😏

craue avatar Jul 17 '17 19:07 craue

Perhaps i'll do it. What about adding a colon 'type' and move from varchar255 to long text. We could support dates, ints, floats, serialized arrays, etc. It would require modifying the getter setter to adapt every time to the set variable. Seems feasible, what do you think about this @craue ?

db306 avatar Nov 07 '17 11:11 db306

any updates?

neok avatar May 31 '19 08:05 neok

The bundle probably won't support different data types (see #5, #29).

craue avatar Jun 01 '19 07:06 craue