PHP Class 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.
Inheritance: extends Pheasant\Relationship
Exibir arquivo Open project: lox/pheasant

Public Methods

Method Description
__construct ( $class, $local, $foreign = null, $allowEmpty = false ) Constructor
get ( $object, $key, $cache = null ) * (non-phpdoc)
set ( $object, $key, $value ) * (non-phpdoc)

Method Details

__construct() public method

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

get() public method

* (non-phpdoc)
See also: Relationship::get()
public get ( $object, $key, $cache = null )

set() public method

* (non-phpdoc)
See also: Relationship::set()
public set ( $object, $key, $value )