What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello, why is the `CategoryFacade::getCategoryByKey` being deprecated? Is there any performance issu

U017R8HDWG5
U017R8HDWG5 Posts: 2 🧑🏻‍🚀 - Cadet

Hello, why is the CategoryFacade::getCategoryByKey being deprecated? Is there any performance issue? What is the suggested workaround besides copying that same method into project level classes?

Comments

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    Hi Fabiano, thank you for noting this.
    I'm clarifying internally but it seems to be some incorrect or forgotten deprecation message as it's 5 years old already.

  • U017R8HDWG5
    U017R8HDWG5 Posts: 2 🧑🏻‍🚀 - Cadet

    👍

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    @UK5EG6PBM don't you remember why have you done that deprecation? 👀

  • Uhhh ... that's a long time ago. If I remember correctly, the key field was only used during import to identify a category against an external system. The decision was to not use this field for any other purposes internally. Exposing methods in the facade that target the key field should not exist.