Skip to content

Conversation

milindsingh
Copy link
Member

Added sniff for #187 to discourage the use of Resource class from Model class.

Trigger Methods:

  • getResource()->load($object)
  • getResource()->save($object)
  • getResource()->delete($object)

Message: Possible use of the deprecated model method 'getResource()' to 'save' the data detected.

Copy link
Contributor

@lenaorobei lenaorobei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address review comments.

@milindsingh
Copy link
Member Author

milindsingh commented Aug 17, 2020

Thanks @ihor-sviziev
@lenaorobei I think its good to merge now.

Also, Is there any way to change labels to Partner: Born Group partners-contribution ?

ihor-sviziev
ihor-sviziev previously approved these changes Aug 17, 2020
@lenaorobei
Copy link
Contributor

Great! Thanks @ihor-sviziev. Let me run this test again Magento codebase and make sure it does not produce false positive findings.

@lenaorobei lenaorobei merged commit edca711 into magento:develop Aug 17, 2020
magento-devops-reposync-svc pushed a commit that referenced this pull request Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants