public function __clone() { $this->added = []; $this->removed = []; $this->wasLoaded = false; $this->isModified = false; $this->collection = null; }