protected function removeGeneratedProperties()
    {
        $properties = $this->getGeneratedProperties();

        foreach ($properties as $property) {
            $name = $property->getName();
            unset($this->{$name});
        }
    }