PHP 클래스 Pheasant\Relationships\HasOne

An example of this type of relationship would be a Hero HasOne SecretIdentity. Hero owns the primary key of heroid, and SecretIdentity has a foreign key of heroid.
상속: extends Pheasant\Relationship
파일 보기 프로젝트 열기: lox/pheasant

공개 메소드들

메소드 설명
__construct ( $class, $local, $foreign = null, $allowEmpty = false ) Constructor
get ( $object, $key, $cache = null ) * (non-phpdoc)
set ( $object, $key, $value ) * (non-phpdoc)

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $class, $local, $foreign = null, $allowEmpty = false )

get() 공개 메소드

* (non-phpdoc)
또한 보기: Relationship::get()
public get ( $object, $key, $cache = null )

set() 공개 메소드

* (non-phpdoc)
또한 보기: Relationship::set()
public set ( $object, $key, $value )