Skip to content

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

@AronBender36

Description

@AronBender36

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions