You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm building a DB in fluid mode from a JSON object.
In my model, the only $fieldConf entry is the ID field, any other column is added at runtime. But not the field that is an array.
It crashes here:
Hi,
I'm building a DB in fluid mode from a JSON object.
In my model, the only
$fieldConf
entry is the ID field, any other column is added at runtime. But not the field that is an array.It crashes here:
f3-cortex/lib/db/cortex.php
Line 1658 in 6c735c7
Unfortunately, I can't use a custom setter/getter
onset('unknown_fieldname', ...)
in the model, since I don't know the name of the field.Is there an elegant way to set this up to save and retrieve objects in fluid mode?
Edit:
For now I solved it with a custom cortex method that takes in the dataset and creates
onset
andonget
hooks on the fly.CSV Model
This was the least intrusive, but maybe there is a better way?
The text was updated successfully, but these errors were encountered: