protected function generateTypes(array $schema)
    {
        $directory = $this->getMappingDirectory('Type');
        foreach ($schema['types'] as $type => $data) {
            $this->generateType($type, $data, $directory, $schema);
        }
    }