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
Blast
Orm
RepositoryInterface
PHP Interface Blast\Orm\RepositoryInterface
显示文件
Open project: phpthinktank/blast-orm
Public Methods
Method
Description
all
( ) :
SplStack |
array
Get a collection of all entities
find
(
mixed
$primaryKey
) :
ArrayObject | stdClass |
object
|
array
Find entity by primary key
save
(
object
|
array
$data
) :
integer
Save new or existing entity
Method Details
all()
public
method
Get a collection of all entities
public
all
( ) :
SplStack |
array
return
SplStack |
array
find()
public
method
Find entity by primary key
public
find
(
mixed
$primaryKey
) :
ArrayObject | stdClass |
object
|
array
$primaryKey
mixed
return
ArrayObject | stdClass |
object
|
array
save()
public
method
Save new or existing entity
public
save
(
object
|
array
$data
) :
integer
$data
object
|
array
return
integer