PHP 클래스 Blast\Orm\AbstractRepository

상속: implements Blast\Orm\MapperFactoryInterface, implements Blast\Orm\RepositoryInterface, use trait MapperFactoryTrait
파일 보기 프로젝트 열기: phpthinktank/blast-orm

공개 메소드들

메소드 설명
all ( ) : SplStack | array Get a collection of all entities
find ( mixed $primaryKey ) : ArrayObject | stdClass | object Find entity by primary key
getEntity ( ) : object Get entity for repository
save ( object | array $data ) : integer | boolean Save new or existing entity data

메소드 상세

all() 공개 메소드

Get a collection of all entities
public all ( ) : SplStack | array
리턴 SplStack | array

find() 공개 메소드

Find entity by primary key
public find ( mixed $primaryKey ) : ArrayObject | stdClass | object
$primaryKey mixed
리턴 ArrayObject | stdClass | object

getEntity() 추상적인 공개 메소드

Get entity for repository
abstract public getEntity ( ) : object
리턴 object

save() 공개 메소드

Save new or existing entity data
public save ( object | array $data ) : integer | boolean
$data object | array
리턴 integer | boolean