Page 1 of 1

Collection vs RefIdCollection

Posted: 09 Mar 2015, 04:38
by cc9cii
These two classes seem to do similar things, and they are both derived from CollectionBase. What were the original motivation for the two? Is Collection meant to be for single and RefIdCollection for nested data structures?

Background:

While looking at Bug #2435, I've noticed that these two similar implementations exist, one setting modified flag and the other not. Naturally I wondered why? I'm guessing that there must've been a good reason that I'm not seeing.

Re: Collection vs RefIdCollection

Posted: 09 Mar 2015, 17:09
by Zini
Collection contains records of a single type. RefIdCollection contains records of varying types.