public function doDelete($model, $id) { if ($this->weak) { return; } $persistence = $this->persistence ?: $this->owner->persistence; $persistence->delete($model, $this->id, $this->foreign_table); $this->id = null; }