@gcphost I think there's no need to make package work with belongsTo relation.
The cascading must be defined in hasOne/hasMany, example:
Car hasMany Components
Component belongsTo Car
$component->car_id = $car->id
cascading will be defined in Car because component depends on car and not the opposite. If I delete a component the car should not be erased.
@gcphost I think there's no need to make package work with belongsTo relation. The cascading must be defined in hasOne/hasMany, example:
Car hasMany Components Component belongsTo Car $component->car_id = $car->id cascading will be defined in Car because component depends on car and not the opposite. If I delete a component the car should not be erased.