top-think / top-think/think-orm

关联删除和软删除的相关问题

Open
#556 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
437
Forks
188
PR merge metrics
No merged PRs in 30d

Description

image

如截图这样写关联删除,加上force()以后,主表记录彻底删除了,但是关联表记录还是软删除

是姿势不对,还是就这么设计的

@liu21st

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the association-deletion scenario shown in the screenshot, including calling force() on the main record, and observe whether the related record is soft-deleted. Then inspect the ORM's association deletion and soft-delete handling to determine whether the behavior is intentional or incorrect. Done means the expected deletion semantics are established and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.