я тут что-то затупил
есть morph поля source_type, source_id, target_type, target_id и relations, указывающие на них - source и target
Есть моделька, хочу взять все записи, где она source или target.
Пока в голову пришло только втупую делать
where([
‘source_type’ => get_class($model),
‘source_id’ => $model->id
])