Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
Think
Db
Query
withField
Think\Db\Query::withField PHP Method
Query Class Documentation
Exibir arquivo
Open project: top-think/framework
withField()
public
method
关联预加载中 获取关联指定字段值 example: Model::with(['relation' => function($query){ $query->withField("id,name"); }])
public
withField
(
string
|
array
$field
)
$field
string
|
array
public function withField($field) { $this->options['with_field'] = $field; return $this; }
Query
__call
__construct
alias
avg
batchQuery
bind
buildSql
builder
cache
chunk
column
comment
commit
connect
count
delete
distinct
execute
failException
fetchClass
fetchPdo
fetchSql
field
find
findOrFail
force
getBind
getConfig
getConnection
getFieldBindType
getFieldsBind
getFieldsType
getLastInsID
getLastSql
getOptions
getPartitionTableName
getPk
getTable
getTableFields
getTableInfo
group
having
insert
insertAll
insertGetId
isBind
join
lazyWrite
limit
lock
master
max
min
name
options
order
page
paginate
parseExpress
parsePkWhere
parseSqlTable
parseWhereExp
partition
pk
query
relation
rollback
select
selectInsert
selectOrFail
sequence
setDec
setField
setInc
setTable
startTrans
strict
sum
table
throwNotFound
transaction
union
update
using
value
via
view
where
whereOr
whereTime
whereXor
with
withField