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.
显示文件
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
public __construct ( $class, $local, $foreign = null, $allowEmpty = false ) |
public get ( $object, $key, $cache = null ) |
public set ( $object, $key, $value ) |