Skip to content

Conversation

Ignition
Copy link
Contributor

An entity (A) with a one to many collection pointing to an entity (B) that has the corresponding many to one reference back (to A) may in some cases be pared incorrectly.

If another entity (C) has a many to one reference back to the original entity (A), but (A) has no collection for (C) then when attempting to pair (A->B) we can actually get (A->C).

This happens when (C)s property to (A) has a name which alphabetically before (B)s property to (A).

I have provided a fix and a test, the test may need modification as it requires PropertyMember and hence the added InternalsVisibleTo in the RakeFile.

If the fix is approved, I am in need of the fix to be cherry-picked back into 1.4, thank you.

@chester89
Copy link
Collaborator

Thanks, I'll review it shortly

@Ignition
Copy link
Contributor Author

Just checking in. Is it possible to know what time frame this bug fix (assuming approved) is likely to merged? Thank you.

@chester89
Copy link
Collaborator

Sorry for such long delay, I'll merge it in this weekend. About new NuGet
release - don't know yet, hoping for 2-3 weeks.

2015-05-29 11:29 GMT+03:00 Gareth Andrew Lloyd notifications@github.com:

Just checking in. Is it possible to know what time frame this bug fix
(assuming approved) is likely to merged? Thank you.


Reply to this email directly or view it on GitHub
#313 (comment)
.

Yours faithfully,
Gleb

@Ignition
Copy link
Contributor Author

I apologise for being a bother (I'm British I have to apologise). I realise maintenance of fluent-nhibernate is likely a side task/project and other tasks are likely taking priority. But I urge you to quickly take some time to look at this issue. In our deployment this mismatch is the cause of several one to many relationships being mistakenly made cascade save-update. Thank you for your time.

@chester89
Copy link
Collaborator

It's me who should apologize - I screwed up again. Fix will be merged &
released in about two weeks when I get back from travelling. Sorry for all
the delays

2015-06-10 11:58 GMT+03:00 Gareth Andrew Lloyd notifications@github.com:

I apologise for being a bother (I'm British I have to apologise). I
realise maintenance of fluent-nhibernate is likely a side task/project and
other task are likely taking priority. But I urge you to quickly take some
time to look at this issue. In our deployment this mismatch is the cause of
several one to many relationships being mistakenly made cascade
save-update. Thank you for your time.


Reply to this email directly or view it on GitHub
#313 (comment)
.

Yours faithfully,
Gleb

@@ -72,7 +72,8 @@ namespace :source do
info.product_name = 'FluentNHibernate'
info.description = commit_hash[0..(commit_hash.length - 3)]
info.copyright = "Copyright 2008-#{Time.new.year} James Gregory and contributors (Paul Batum, Hudson Akridge et al). All rights reserved."
info.namespaces = ['System.Security']
info.namespaces = ['System.Security','System.Runtime.CompilerServices']
info.custom_attributes :InternalsVisibleTo => "FluentNHibernate.Testing"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why InternalsVisibleTo?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I see - because you used PropertyMember

@chester89
Copy link
Collaborator

Any updates on this one @Ignition ?

@Ignition
Copy link
Contributor Author

I didn't have email notifications turned on, only just seen this. Is there something particular you needed me to resolve?

The abstract class was just copying the style from other tests that exist in the solution, I can change that if you like. Plus I have noticed some misnamed variables that may need changing. I don't think I can do anything about InternalsVisibleTo.

If you want me to do any changes to the supporting test then let me know and I'll get that sorted ASAP (I've enabled notifications now).

@chester89
Copy link
Collaborator

Oh, I see.
Yes, it's better that you remove abstract class. InternalsVisibleTo is
fine.

2015-07-10 19:49 GMT+04:00 Gareth Andrew Lloyd notifications@github.com:

I didn't have email notifications turned on, only just seen this. Is there
something particular you needed me to resolve?

The abstract class was just copying the style from other tests that exist
in the solution, I can change that if you like. Plus I have noticed some
misnamed variables that may need changing. I don't think I can do anything
about InternalsVisibleTo.

If you want me to do any changes to the supporting test then let me know
and I'll get that sorted ASAP (I've enabled notifications now).


Reply to this email directly or view it on GitHub
#313 (comment)
.

Yours faithfully,
Gleb

@Ignition
Copy link
Contributor Author

I've committed those changes.

@chester89
Copy link
Collaborator

Ok, thanks. I'll merge this and try to release new versions this week.

2015-07-13 17:31 GMT+03:00 Gareth Andrew Lloyd notifications@github.com:

I've committed those changes.


Reply to this email directly or view it on GitHub
#313 (comment)
.

Yours faithfully,
Gleb

@Ignition
Copy link
Contributor Author

Hi, hope all is well. Just a friendly checkup, hope you haven't forgot about me and my pull request :)

@chester89
Copy link
Collaborator

Yep, I merged it in separate release branches on my fork, NuGets will be
released tomorrow

2015-08-17 19:00 GMT+03:00 Gareth Andrew Lloyd notifications@github.com:

Hi, hope all is well. Just a friendly checkup, hope you haven't forgot
about me and my pull request :)


Reply to this email directly or view it on GitHub
#313 (comment)
.

Yours faithfully,
Gleb

@Ignition
Copy link
Contributor Author

Another friendly nudge :)
Other developers are noticing this issue also (see #323)

@chester89
Copy link
Collaborator

Sorry, I screwed up again.
Will do as soon as possible. And don't stop bugging me until I do

2015-09-23 14:02 GMT+03:00 Gareth Andrew Lloyd notifications@github.com:

Another friendly nudge :)
Other developers are noticing this issue also (see #323
#323)


Reply to this email directly or view it on GitHub
#313 (comment)
.

Yours faithfully,
Gleb

@Ignition
Copy link
Contributor Author

Ignition commented Oct 1, 2015

Bugging you

@chester89
Copy link
Collaborator

Will finally have some time tonight.

2015-10-01 11:46 GMT+03:00 Gareth Andrew Lloyd notifications@github.com:

Bugging you


Reply to this email directly or view it on GitHub
#313 (comment)
.

Yours faithfully,
Gleb

@chester89
Copy link
Collaborator

Just pushed the packages (both .NET 3.5 and 4.0 versions), release
notes/Github tags tomorrow. Your contributions are very much welcome. Thanks

2015-10-05 12:56 GMT+03:00 Gleb Chermennov thebitterend77@gmail.com:

Will finally have some time tonight.

2015-10-01 11:46 GMT+03:00 Gareth Andrew Lloyd notifications@github.com:

Bugging you


Reply to this email directly or view it on GitHub
#313 (comment)
.

Yours faithfully,
Gleb

Yours faithfully,
Gleb

@chester89
Copy link
Collaborator

Thanks for your contribution and for being patient with me. This is released as part of #326 and #327

@chester89 chester89 closed this Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants