Skip to content

Configurable Product Type resource model 'getChildrenIds' method incorrect return format. #14061

Closed
@kshaa

Description

@kshaa

Preconditions

  1. Want to batch get simple product ids from configurable product ids
  2. Magento version 2.4-develop

Steps to reproduce

  1. Inject class \Magento\ConfigurableProduct\Model\ResourceModel\Product\Type
  2. Apply array of multiple configurable id's to method getChildrenIds

Expected result

  1. Returns array, matching configurable ids to arrays of simple ids
    // Start of edit
  2. Expecting array to have such structure: [
    "parent id" => ["child id"]
    ]
    // End of edit

Actual result

  1. Returns array [0 => [
    "child id" => "child id"
    ]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ConfigurableProductIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Progress: doneReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject itstale issue

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions