構造使關係對象進行配置。
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __構造 ( 字符串 $ foriegnKey, 字符串 $ otherTable, 字符串 $ otherTableForiegnKey,[ 字符串 $ relationName = NULL],[ 字符串 $ relationType = NULL])
- $foriegnKey : the foriegn key in the current object that this relationship should be created on 字符串 $ foriegnKey:何瑞明的關鍵,這種關係應建立在當前對象
- $otherTable : the other table this relationship is with 字符串 $ otherTable:這種關係是與其他表
- $otherTableForiegnKey : the key in the other table that this relationship is with 字符串 $ otherTableForiegnKey:其他表中的關鍵,這關係是
- $relationName : the name of the relationship 字符串 $ relationName 關係的名稱
- $relationType : the type of the relationship if it is a one to one relationship or not 字符串 $ relationType:關係類型,如果是一對一的關係,或不
AddExcludedValue ( 無效 AddExcludedValue( ) $值 )
訂單的關係返回的項目
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) ,,無效 AddOrderBy( 字符串 $ fieldName的 ,[ 字符串 $ orderDirection = NULL)
- $fieldName : the field name to be ordered 字符串 $ fieldName的 字段的名稱,責令
- $orderDirection : the direction the field should be ordered. 字符串 $ orderDirection:方向應當責令領域。 這可以採取的值RocksDesc或RocksAsc。
在添加了一個對象,以現有的關係對象
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) 的無效 AddRelation( 字符串 $ foriegnKey, 字符串 $ otherTable, 字符串 $ otherTableForiegnKey,[ 字符串 $ relationName = NULL],[ 字符串 $ relationType = NULL])
- $foriegnKey : the foriegn key in the current object that this relationship should be created on 字符串 $ foriegnKey:何瑞明的關鍵,這種關係應建立在當前對象
- $otherTable : the other table this relationship is with 字符串 $ otherTable:這種關係是與其他表
- $otherTableForiegnKey : the key in the other table that this relationship is with 字符串 $ otherTableForiegnKey:其他表中的關鍵,這關係是
- $relationName : the name of the relationship 字符串 $ relationName 關係的名稱
- $relationType : the type of the relationship if it is a one to one relationship or not 字符串 $ relationType:關係類型,如果是一對一的關係,或不
Alternative ( 無效的 替代 ( ) $的關係 )
GetNextAlternativeRelation () 無效 GetNextAlternativeRelation()
返回代表訂貨,這通常是在內部使用的SQL。
GetOrderBy () 的無效 GetOrderBy()
這是數量關係,這種關係是有
HasRelations () 無效 HasRelations()
IsExcludedValue ( 無效 IsExcludedValue( ) $值 )
__get ( 函數void __得到 ( ) $名 )
__set ( 函數void __集 ( , $ var的 , ) $ varValue)