First of all, thanks and great work to all for this fantastic tool!
I've been using .nettiers for about 2 months now and recently came across this problem.
Scenario
I have a table 'Person' and another 'RelatedPersons'. A 'Person' can have 0 or more 'RelatedPersons'.
The 'RelatedPersons' table is made up of two fields, both foreign key of 'PersonId' from the 'Person' table.
The Code
This is the code which can be used to replicate the scenario described above.
GO
CREATE TABLE [dbo].[Person](
[PersonID] [int] IDENTITY(1,1) NOT NULL,
[PersonName] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
PRIMARY KEY CLUSTERED
(
[PersonID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[RelatedPersons](
[PersonID] [int] NOT NULL,
[RelatedPersonID] [int] NOT NULL,
CONSTRAINT [PK_RelatedPersons] PRIMARY KEY CLUSTERED
(
[PersonID] ASC,
[RelatedPersonID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RelatedPersons] WITH CHECK ADD CONSTRAINT [FK_RelatedPersons_Person] FOREIGN KEY([PersonID])
REFERENCES [dbo].[Person] ([PersonID])
GO
ALTER TABLE [dbo].[RelatedPersons] WITH CHECK ADD CONSTRAINT [FK_RelatedPersons_Person1] FOREIGN KEY([RelatedPersonID])
REFERENCES [dbo].[Person] ([PersonID])
Problem
On the 'Person Edit' page, when I want to 'Add a new person...' and link it at the same time to another person ('RelatedPerson'), the link does not seem to be saved to the database.
The 'RelatedPersons' page also does not show an entry to that table. The 'Person' table however gets populated wihout any problem.
Can anyone please advise me as to what I'm doing wrong and if there's a way around it?
Thanks in advance 