I am using the Cabana framework.
/// <summary>Create clone of this entity; it is associated with but NOT attached to a PM</summary>
/// <remarks>
/// The clone gets its <see cref="PersistenceManager"/> from this entity.
/// See <see cref="Clone(PersistenceManager)"/>.
/// </remarks>
public virtual Entity Clone() {
return Clone(PersistenceManager);
}
public virtual Entity Clone(PersistenceManager pManager) {
Entity aClone = pManager.CreateEntity(GetType());
aClone.ItemArray = ItemArray;
return aClone;
}
I would think that overriding the associated object would be suffice. But the reference doesn't take.