@has_many = ManifestBase.load_name_values this, @values, 'has_many', Manifest.ModelModule.AssociationModule.HasMany\r
@has_one = ManifestBase.load_name_values this, @values, 'has_one', Manifest.ModelModule.AssociationModule.HasOne\r
\r
- model_name: () ->\r
- @parent.name\r
+ item_name: () ->\r
+ @parent.item_name()\r
\r
- each_parent_model: () ->\r
- _.each _belongs_to, (belongs_to_manifest, name) ->\r
- next if not _parent.classify.is_element()\r
- if _parent.classify.my_peta.type == 'element'\r
+ parent_models: () ->\r
+ _this = this\r
+ _.map _belongs_to, (belongs_to_manifest, name) ->\r
+ pm = _this.parent.classify()\r
+ next if not pm.is_element()\r
+ if pm.my_peta.type == 'element'\r
next if not belongs_to_manifest.model.my_peta.type == 'root'\r
- if _parent.classify.my_peta.type == 'leaf'\r
+ if pm.my_peta.type == 'leaf'\r
next if not belongs_to_manifest.model.my_peta.type == 'binder'\r
- #yield belongs_to_manifest.model\r
\r
child_element_name: (child_model) -> \r
if @is_has_one(child_model)\r