public unlink ( string $name, static $model, boolean $delete = false ) | ||
$name | string | the case sensitive name of the relationship, e.g. `orders` for a relation defined via `getOrders()` method. |
$model | static | the model to be unlinked from the current one. |
$delete | boolean | whether to delete the model that contains the foreign key. If false, the model's foreign key will be set `null` and saved. If true, the model containing the foreign key will be deleted. |