Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Clone constructors a.k.a. introduce a __clone() method on some IObjects? #3

Open
graste opened this issue Oct 10, 2014 · 0 comments
Open
Labels

Comments

@graste
Copy link
Contributor

graste commented Oct 10, 2014

Some properties should not be cloned and need to be new instances on cloned instances (e.g. an identifier or UUID attributes). Basically everything that's set in __construct() should be set again in __clone()

This may not directly apply to Document or DocumentType as in the field_path branch, but is necessary for entities like AggregateRoot instances.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant