PHP 클래스 Isswp101\Persimmon\Relationship\HasManyRelationship

파일 보기 프로젝트 열기: isswp101/elasticsearch-eloquent

보호된 프로퍼티들

프로퍼티 타입 설명
$childClassName Isswp101\Persimmon\ElasticsearchModel
$parent Isswp101\Persimmon\ElasticsearchModel

공개 메소드들

메소드 설명
__construct ( ElasticsearchModel $parent, $childClassName )
find ( mixed $id ) : ElasticsearchModel | null Find model by id.
get ( ) : ElasticsearchCollection | ElasticsearchModel[] Find all children.
save ( ElasticsearchModel | ElasticsearchModel[] $child ) Save children.

메소드 상세

__construct() 공개 메소드

public __construct ( ElasticsearchModel $parent, $childClassName )
$parent Isswp101\Persimmon\ElasticsearchModel

find() 공개 메소드

Find model by id.
public find ( mixed $id ) : ElasticsearchModel | null
$id mixed
리턴 Isswp101\Persimmon\ElasticsearchModel | null

get() 공개 메소드

Find all children.
public get ( ) : ElasticsearchCollection | ElasticsearchModel[]
리턴 Isswp101\Persimmon\Collection\ElasticsearchCollection | Isswp101\Persimmon\ElasticsearchModel[]

save() 공개 메소드

Save children.
public save ( ElasticsearchModel | ElasticsearchModel[] $child )
$child Isswp101\Persimmon\ElasticsearchModel | Isswp101\Persimmon\ElasticsearchModel[]

프로퍼티 상세

$childClassName 보호되어 있는 프로퍼티

protected ElasticsearchModel,Isswp101\Persimmon $childClassName
리턴 Isswp101\Persimmon\ElasticsearchModel

$parent 보호되어 있는 프로퍼티

protected ElasticsearchModel,Isswp101\Persimmon $parent
리턴 Isswp101\Persimmon\ElasticsearchModel