Many-To-Many Relationship assistance

A place for users and developers of the Xataface to discuss and receive support.

Many-To-Many Relationship assistance

Postby digital1 » Mon Nov 22, 2010 10:21 am

Hi,

I have 2 tables, show and host. I also have a table called host_show that houses the keys between the two tables. I have the following code in the relationship.ini file for host:
Code: Select all

[host]
users.id=  "$updatedId"

[show]
show.id=host_show.showId
host_show.hostId="$hostId"



I am not getting the UI changes as expected. Any ideas? Thanks in advance!
digital1
 
Posts: 24
Joined: Wed Nov 03, 2010 9:40 am

Re: Many-To-Many Relationship assistance

Postby shannah » Mon Nov 22, 2010 10:46 am

Change the name to relationships.ini (not relationship.ini)

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Many-To-Many Relationship assistance

Postby digital1 » Mon Nov 22, 2010 11:00 am

Wow... I feel dumb. LOL! Thanks Steve again for a quick response. This makes me wonder though... Throughout my application I have used relationship.ini to define my foreign keys. It works as it should I think. It's not crashing. Does this mean I should change all of my files to be relationships.ini? Also I saw a few previous posts about primary keys and denoting those in the relationships.ini so that adding records will work. Does this apply across the board?
digital1
 
Posts: 24
Joined: Wed Nov 03, 2010 9:40 am

Re: Many-To-Many Relationship assistance

Postby shannah » Mon Nov 22, 2010 11:11 am

Yes. Xataface doesn't look for any files named relationship.ini ... they just get ignored.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 20 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved