Caribou: Unable to create a model that has a self reference!

2014-02-04 Thread David Baldin
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

Re: Caribou: Unable to create a model that has a self reference!

2014-02-04 Thread David Baldin
{: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

Re: Caribou: Unable to create a model that has a self reference!

2014-02-04 Thread David Baldin
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 &