top-think / top-think/think-orm

一对多关联查询问题

Open
#558 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

大佬,请问一下,在一对多关联模型中,模型文件名和类名的第一个字母都是大写,然后在使用的时候sql语句也跟着变成大写,这种的怎么解决?
1
2

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

The report names no files, tests, or entry points; start by reproducing the one-to-many association query with the uppercase model filename and class name described in the issue. Trace where the generated SQL table or identifier names are formed, then clarify the expected casing and add a regression test once the intended behavior is confirmed.

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
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.