/** * In addition to calling parent method, tell all properties */ public function setPath($path, $move = false) { parent::setPath($path, $move); foreach ($this->properties as $property) { $property->setPath($path . '/' . $property->getName(), $move); } }