umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
Other
4.49k stars 2.69k forks source link

Doctypes with parent doctypes won't compile in modelsbuilder #10232

Closed Shadyn closed 3 years ago

Shadyn commented 3 years ago

When a doctype inherits from another doctype, modelsbuilder fails on compile (using appdata for mode) by saying the parent doctype does not have a publishedValueFallback

Reproduction

Bug summary

When a doctype inherits from another doctype, modelsbuilder fails on compile (using appdata for mode) by saying the parent doctype does not have a publishedValueFallback. Only by adding another constructor to the genereated class files can I get it to compile. The parent class may need a constructor that doesn't contain the publishedValueFallback parameter. NOTE: These doctypes were not created on the beta - they came over in the upgrade

image

Specifics

This has happened in every version of the beta so far

Steps to reproduce

Expected result

Models would build like in V8

Actual result

All doctypes using inheritance fail on build with "There is no argument given that corresponds to the required formal parameter 'publishedValueFallback''"

bergmania commented 3 years ago

Hi @Shadyn

Thanks for reporting. I can confirm I can reproduce