public function __clone() { if ($this->properties['batch']) { $this->properties['batch'] = clone $this->properties['batch']; } }