protected function writeObject(&$objectOrArray)
 {
     parent::writeObject($objectOrArray);
     foreach ($this->removedFields as $name) {
         unset($objectOrArray[$name]);
     }
 }