You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2011/09/18 15:30:08 UTC

[jira] [Closed] (OFBIZ-4406) entity PrimaryParentProductCategory referred to but does not exist

     [ https://issues.apache.org/jira/browse/OFBIZ-4406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-4406.
----------------------------------

    Resolution: Invalid
      Assignee: Jacques Le Roux

If you look at the API defintion for GenericValue.getRelatedOne(), you will read

<<relationName String containing the relation name which is the combination of relation.title and relation.rel-entity-name as specified in the entity XML definition file>>

http://ci.apache.org/projects/ofbiz/site/javadocs/org/ofbiz/entity/%28java.lang.String%29

And you have this definition in the ProductCategory entity definition 
{code}
<relation type="one" fk-name="PROD_CTGRY_PARENT" title="PrimaryParent" rel-entity-name="ProductCategory">
    <key-map field-name="primaryParentCategoryId" rel-field-name="productCategoryId"/>
</relation>
{code}

As you can see title="PrimaryParent" rel-entity-name="ProductCategory" => PrimaryParentProductCategory


> entity PrimaryParentProductCategory referred to but does not exist
> ------------------------------------------------------------------
>
>                 Key: OFBIZ-4406
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4406
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>            Reporter: Wai
>            Assignee: Jacques Le Roux
>
> /application/product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy
> refers to entity PrimaryParentProductCategory.
> But it is not defined.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira