Skip to content

Remove findBySlug method to use the query builder #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

edwwaarrdd
Copy link

The findBySlug method on the TermRepository has been deprecated for a while now and has completely been removed from Statamic 4. So rewrote it to use the query builder. This together with #144 Should make this working in statamic 4.

See statamic/cms#3671 and statamic/cms#7536

…ing terms

- Refactored the code in ImportCollectionsForProductJob to use the query builder instead of the findBySlug method to find terms.
- Added a where clause to filter by slug and taxonomy when querying for terms.
@edalzell edalzell closed this Sep 4, 2023
@edalzell edalzell reopened this Sep 4, 2023
@edalzell edalzell closed this Sep 4, 2023
@edalzell edalzell reopened this Sep 4, 2023
@edalzell edalzell closed this Sep 4, 2023
@edalzell edalzell reopened this Sep 4, 2023
@edalzell edalzell closed this Sep 4, 2023
@ryanmitchell ryanmitchell reopened this Sep 4, 2023
@ryanmitchell ryanmitchell reopened this Sep 4, 2023
@ryanmitchell ryanmitchell reopened this Sep 4, 2023
@ryanmitchell ryanmitchell reopened this Sep 4, 2023
@duncanmcclean duncanmcclean reopened this Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants