From 47a00df9d7c7b64bf967dc9a5b108cc86766fec3 Mon Sep 17 00:00:00 2001 From: Stanley Goldman Date: Mon, 29 Sep 2014 20:54:09 -0400 Subject: [PATCH] Adding comment to Repository --- src/Orchard/Data/Repository.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Orchard/Data/Repository.cs b/src/Orchard/Data/Repository.cs index f48dc8f8a..92bb29101 100644 --- a/src/Orchard/Data/Repository.cs +++ b/src/Orchard/Data/Repository.cs @@ -113,6 +113,9 @@ namespace Orchard.Data { var metadata = Session.SessionFactory.GetClassMetadata(typeof (T)); var values = metadata.GetPropertyValues(source, EntityMode.Poco); + //This method is currently only used by StorageVersionFilter<>.Versioning() + //In order to prevent shared references to the same collection instance + //Instances of IList<> need to be copied to a new collection instance for (var index = 0; index < values.Length; index++) { var value = values[index]; if (value == null)