I'm getting a very strange error. Reactor is suddenly not recognising
relationship definitions that I have defined in my reactor.xml file.
For example I have 3 related objects:
<object name="contentmenuitemlanguagetemplate">
<hasone name="contentmenuitem">
<relate from="contentmenuitemid" to="contentmenuitemid" />
</hasone>
<hasone name="language">
<relate from="languageid" to="languageid" />
</hasone>
</object>
<object name="contentmenuitem">
<hasOne name="content">
<relate from="contentId" to="contentId" />
</hasOne>
<hasOne name="contentmenu">
<relate from="contentMenuId" to="contentMenuId" />
</hasOne>
<hasOne name="contentmenuitemtype">
<relate from="contentMenuItemTypeId" to="contentMenuItemTypeId" />
</hasOne>
<hasOne name="category">
<relate from="categoryId" to="categoryId" />
</hasOne>
<hasOne name="vocabulary">
<relate from="vocabularyId" to="vocabularyId" />
</hasOne>
<hasMany name="contentmenuitemlanguagetemplate">
<relate from="contentmenuitemid" to="contentmenuitemid" />
</hasMany>
</object>
<object name="language">
</object>
However it is not generating the getcontentmenuitem() method in the
contentmenuitemlanguagetemplate record object. I have tried using
aliases, changed the case of the object definitions in reactor.xml to
no avail.
Has anyone else experienced this problem?
Is reactor in development or production mode? Change the hasone to
hasOne in the contentmenuitemlanguagetemplate object definition.
Also each time you make a change delete all of the generated files in
the project/[projectname] directory in the framework directory.
Dave
That worked!! It was the lower case with hasOne/hasMany that was the
issue.
Thanks very much for your help.
Tom
--
You received this message because you are subscribed to the Google Groups "Reactor" group.
To post to this group, send email to reacto...@googlegroups.com.
To unsubscribe from this group, send email to reactor-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reactor-users?hl=en.