Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item Language fallback doesn't work on SitecoreChildren extended models #461

Open
AronBender36 opened this issue Mar 11, 2024 · 0 comments

Comments

@AronBender36
Copy link

Ex:
-- Auto-generated interface
` public partial interface IProductSelection : IGlassBase
{

    /// <summary>Represents the Product field (7887e669-df79-4ba0-b7bb-2c43d6da77c7).</summary>
    //[SitecoreField(FieldName = IProductSelectionConstants.ProductFieldName)]
	[SitecoreField(IProductSelectionConstants.ProductFieldName)]
    Guid Product { get; }

}`

-- Manually generated interface
public partial interface IProductSelection { [SitecoreField(IProductSelectionConstants.ProductFieldName)] IProduct ProductObject { get; } }

-- Manually generated interface for IProduct
public partial interface IProduct : IProductTitle { [SitecoreChildren(InferType = true)] IEnumerable<IProductPricing> ProductPricings { get; set; } }

In this example, ProductObject might be null where Product is not. The behavior seems inconsistent, but even if ProductObject is not null, its children doesn't get populated correctly (ProductPricings)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant