unlink() public method
Destroys the relationship between two models. The model with the foreign key of the relationship will be deleted if $delete is true. Otherwise, the foreign key will be set null and the model will be saved without validation.
public void unlink ( $name, $model, $delete = false )$name string
The case sensitive name of the relationship, e.g. orders for a relation defined via getOrders() method. $model yii\db\ActiveRecordInterface
The model to be unlinked from the cu