Welcome Guest!
 ModelGlue
 Previous Message All Messages Next Message 
Model-Glue reactor Composite keys  Ricardo Barbosa
 Jul 23, 2008 09:15 PDT 

Hello
I'm using I'm using Reactor with Model-Glue / ColdSpring and MG's
scaffolding + Oracle Database.

Suppose i have this tables:

News:
id_news
title
date
...

Language
id_language
desc_lang
...

News_Lang
id_news
id_language
title
text


The reactor.xml is like this:

             < object name="NEWS" alias="News">
                        <field name="ID_NEWS" sequence="SEQ_NEWS" />
             < /object>


             < object name="NEWS_LANG" alias="NewsLang">
                       <hasOne name="News">
                               <relate from="ID_NEWS" to="ID_NEWS" />
                       </hasOne>
                       <hasOne name="Lang">
                               <relate from="ID_LANGUAGE"
to="ID_LANGUAGE" />
                       </hasOne>
               < /object>

              < object name="LANGUAGE" alias="Lang">
                       <field name="ID_LANGUAGE" sequence="SEQ_LANGUAGE"
/>
               < /object>

Everything is working fine but when I whant to add a record to the
news_lang table (event=NewsLang.edit)
the id_language and id_news value are zero as opposite to the value i
select on the combo boxes.

those anyone has a clue i can i resolve this.

tanks in advance.
	
 Previous Message All Messages Next Message 
  Check It Out!

  Topica Channels
 Best of Topica
 Art & Design
 Books, Movies & TV
 Developers
 Food & Drink
 Health & Fitness
 Internet
 Music
 News & Information
 Personal Finance
 Personal Technology
 Small Business
 Software
 Sports
 Travel & Leisure
 Women & Family

  Start Your Own List!
Email lists are great for debating issues or publishing your views.
Start a List Today!

© 2001 Topica Inc. TFMB
Concerned about privacy? Topica is TrustE certified.
See our Privacy Policy.