Skip to content
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

Updated slider module #12

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

denisprotassoff
Copy link

@denisprotassoff denisprotassoff commented Dec 19, 2022

Fulfills some requests from this issue: 5328.

In this PR:

  • Added interfaces for Slider, Slide and Map (slide mapping table)
  • Used declarative schema for table creation
  • Added repositories for Slider, Slide and Map
  • Updated controllers to use repositories and factories and also eliminated ObjectManager use

Comes with slider-graphql module update.

@denisprotassoff denisprotassoff changed the title Added declarative schema for DB, implemented interfaces for Slider and Slide Updated slider module Dec 23, 2022
Copy link

@tarasovd tarasovd left a comment

Choose a reason for hiding this comment

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

Looks good!

Comment on lines +62 to +63
$slide = $this->slideRepository->get($id);
$this->slideRepository->delete($slide);

Choose a reason for hiding this comment

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

Might be worth to implement slider repository deleteById method

Copy link
Author

Choose a reason for hiding this comment

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

It's not gonna help here, because we need slider ID from slide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants