gurgentil / laravel-eloquent-sequencer

A package that allows you to create and manage sequences on Eloquent models.
MIT License
156 stars 13 forks source link

sequenceableKeys are not verified on update #17

Open sl0wik opened 3 years ago

sl0wik commented 3 years ago

When key from sequenceableKeys is updated sequence is not updated.

Example:

protected static $sequenceableKeys = [
    'task_list_id',
];

If $this->task_list_id is updated position field should be updated as well.

gurgentil commented 3 years ago

Hey! I couldn't quite understand what this issue is about. Can you detail it a little bit more or provide a different example?