Hey!
i hope this is the right place to ask this question! Here it goes: I want
to create a simple model with cariou that references itself to generate a
tree-structure. Like this:
(defn category []
(model/create :model {:name "category"
:fields [{:name "Label" :type
{:name "parent-id" :type "integer"}]})
(db/add-reference :field :parent-id :category :destroy)))
now i have to touch the model-table somehow.
Am Dienstag, 4. Februar 2014 10:11:06 UTC+1 schrieb David Baldin:
>
> Hey!
>
> i hope this is the right place to as
uot;sub-categories"}]}
Documentation of caribou.model/create and caribou.model/update describes it
all!
Have a nice day!
Am Dienstag, 4. Februar 2014 10:11:06 UTC+1 schrieb David Baldin:
>
> Hey!
>
> i hope this is the right place to ask this question! Here it goes: I want
&