Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Webiny
Component
Entity
Entity
setDatabase
Webiny\Component\Entity\Entity::setDatabase PHP Method
Entity Class Documentation
显示文件
Open project: Webiny/Framework
setDatabase()
public
method
Set entity database
public
setDatabase
(
Mongo
$mongoDatabase
)
$mongoDatabase
Webiny\Component\Mongo\Mongo
public function setDatabase(Mongo $mongoDatabase) { self::$database = $mongoDatabase; }
Entity
add
addValidator
get
getDatabase
getValidator
init
postSetConfig
remove
reset
setDatabase