ConstraintViolation problem on soft delete

Hello , I'm tryng to use soft delete and it works for any models, but at the last model that I test show me this error msg: I have relation hasOne with other model, but whats the matter?

Phalcon\Mvc\Model\Message Object ( [type:protected] => ConstraintViolation [message:protected] => Record is referenced by model \Modules\Admin\Models\Options\EndpointType [field:protected] => endpointtype [model:protected] => [code:protected] => 0 )



83.4k

It means the record you're trying to delete is being used in another model. As as is trying to delete the record, the behavior probably is misconfigured