candy-api
candy-api copied to clipboard
Reference NodeTrait method for setting parent ID of Category
This minor fix addressed issue #332
Description
Instead of using the mutators scope for setting the parent ID of a child category, which failed, this utilizes the trait method provided by the nestedset package.
Checks
- [X] Works with a fresh install
- [ ] Documentation updated
- [ ] Changelog
- [ ] Upgrade guide
- [ ] Do these changes impact the hub and require a new version
The tests will pass with #335 merged.