reactor suddenly not recognising linked objects

6 views
Skip to first unread message

Tom B

unread,
Nov 30, 2011, 10:15:26 AM11/30/11
to Reactor
Hi,

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?

phipps_73

unread,
Nov 30, 2011, 11:07:03 AM11/30/11
to Reactor
2 things to check:

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

Tom B

unread,
Nov 30, 2011, 12:32:49 PM11/30/11
to Reactor
Hi Dave,

That worked!! It was the lower case with hasOne/hasMany that was the
issue.

Thanks very much for your help.

Tom

Dave Phipps

unread,
Nov 30, 2011, 3:27:42 PM11/30/11
to reacto...@googlegroups.com
No probs, that one's bitten me in the past.


--
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.


Reply all
Reply to author
Forward
0 new messages