Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to have settings of different types #37

Open
Zoopme opened this issue Jul 13, 2017 · 4 comments
Open

Possibility to have settings of different types #37

Zoopme opened this issue Jul 13, 2017 · 4 comments

Comments

@Zoopme
Copy link

Zoopme commented Jul 13, 2017

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,

@craue
Copy link
Owner

craue commented Jul 17, 2017

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

@db306
Copy link

db306 commented Nov 7, 2017

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 ?

@neok
Copy link

neok commented May 31, 2019

any updates?

@craue
Copy link
Owner

craue commented Jun 1, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants