Skip to content

22010 -Updates AbstractExtensibleObject and AbstractExtensibleModel annotations #22010

Closed
@atwixfirster

Description

@atwixfirster

Preconditions (*)

  1. Magento 2.3.1

Summary (*)

Magento is no longer support inheritance of DTO classes from Magento\Framework\Api\AbstractExtensibleObject. This class extends abstract class AbstractExtensibleObject extends AbstractSimpleObject. There is a new code and new modules, for example, Inventory module which uses inheritance of Magento\Framework\Model\AbstractExtensibleModel.

Examples (*)

The misunderstanding is caused a point that AbstractExtensibleObject class marked as @api, in the sime time AbstractExtensibleModel does not have the same mark.

Proposed solution

  • Add PHP annotation @api to AbstractExtensibleModel
  • Add PHP annotation @deprecated to AbstractExtensibleObject and @see which link to AbstractExtensibleModel

CC: @maghamed

22010

Thank you! 😊

Metadata

Metadata

Assignees

Labels

Component: Framework/ApiUSE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog Service Contracts use just CatalogFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: 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 passedPartner: AtwixPull Request is created by partner AtwixRelease Line: 2.3Reproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions