Closed om3rcitak closed 4 years ago
Now, I can't use only relation name in $softCascade variable. If a set $softCascade variable as a like this;
in Post model protected $softCascade = ['comments'];
protected $softCascade = ['comments'];
I get this exception;
Askedio/SoftCascade/Exceptions/SoftCascadeLogicException with message 'Non existing relation action [comments@]'
So, I added 'update' action as a default action if action is null. Now, I can use $softCascade variable elements without action.
Now, I can't use only relation name in $softCascade variable. If a set $softCascade variable as a like this;
in Post model
protected $softCascade = ['comments'];
I get this exception;
Askedio/SoftCascade/Exceptions/SoftCascadeLogicException with message 'Non existing relation action [comments@]'
So, I added 'update' action as a default action if action is null. Now, I can use $softCascade variable elements without action.