Hello,

I'm running into the following problems while mapping a List of
objects using List semantics, I can't use a bag because the order is
important.

However when testing I get the following exception:

NHibernate.HibernateException: null index column for collection:
SubPhases.

The mapping looks like this:

            HasMany(p => p.SubPhases)
                .Inverse()
                .KeyColumnNames.Add("ParentPhase")
                .AsList(index => index.WithColumn("idx"))
                .Cascade.AllDeleteOrphan();

I've also tried

.AsList() and AsList(index => index.WithColumn("idx").WithType<int>())

both without success.

Am I missing something obvious ?

Thanks :)

- HMS
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to