Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3722 Widoki

I have the need to create a model that can store a set of fields twice. My first thought was to create a data structure that holds the fields and put two instances of it in the model. But as far as I know this isn't possible, since all the fields that I use in my object need to be a subclass of fields._column.

Creating another model out of the set and linking instances of it to the main model doesn't seem useful, since their lifetime needs to be the same as the main model, and I don't gain direct access to the set fields anyway (which is what I'm looking for).

So the question is: Is there a way to include (several copies of) a set of data inside a model and directly access it from the model (without using related fields)?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lip 18
3928
0
wrz 15
3775
6
kwi 15
7216
1
mar 15
5625
1
mar 15
364