webmcp

annotate framework/env/trace/_new_entry.lua @ 543:a886e263b534

Bugfix regarding 1:1 relations: allow setting one class as primary class (needed to avoid endless recursion in foreign key lookups)
author jbe
date Sat Oct 19 18:55:24 2019 +0200 (2019-10-19)
parents 04b648660f9a
children
rev   line source
jbe/bsw@0 1 function trace._new_entry(node)
jbe/bsw@0 2 local node = node or {}
jbe@302 3 local stack = trace._stack
jbe@302 4 local parent = stack[#stack]
jbe@302 5 parent[#parent+1] = node
jbe/bsw@0 6 return node
jbe/bsw@0 7 end

Impressum / About Us