Build 701 session.Load returning null item in list

97 views
Skip to first unread message

nick

unread,
Apr 4, 2012, 2:36:07 PM4/4/12
to rav...@googlegroups.com
We are in the process of upgrading to build 701.  

Before the moving to 701 if we called session.Load<Person>(ids) and ids had a document id that no longer existed in RavenDB it would only return a list of the found documents.  With 701 it is returning a list with a null item.   Was this a planned change?

The following would of passed before 701

var ids = new[] { "person/1,person/2,person/missing" };
var docs = session.Load<Person>(ids);               
//docs.Length is now 3 
Assert.Equal(2, docs.Length);

Thanks,
Nick

Oren Eini (Ayende Rahien)

unread,
Apr 4, 2012, 4:08:27 PM4/4/12
to rav...@googlegroups.com
Yes, this was a planned change. The reason for that is that it is important to preserve the knowledge for that. In this manner Load(ids) behave like Load(id)

nick

unread,
Apr 4, 2012, 5:07:59 PM4/4/12
to rav...@googlegroups.com
Makes sense, but is a very subtle breaking change.  Thanks for the quick response.
Reply all
Reply to author
Forward
0 new messages