コンストラクタは、関係オブジェクトを設定することができます。
__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:この関係が作成されるべきである現在のオブジェクトのforiegnキー
- $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関係 :それが1対1の関係であるかどうか関係のタイプ
AddExcludedValue ( ボイド AddExcludedValue( ) $ value)を
受注関係で返されるアイテム
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:この関係が作成されるべきである現在のオブジェクトのforiegnキー
- $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関係 :それが1対1の関係であるかどうか関係のタイプ
Alternative ( ボイド 代替 ( ) 関係$)
GetNextAlternativeRelation () ボイド GetNextAlternativeRelation()
これは通常、内部的に使用され、順序を表すSQLを返します。
GetOrderBy () ボイド GetOrderBy()
これは、この関係は持って関係の数です。
HasRelations () ボイド HasRelations()
IsExcludedValue ( ボイド IsExcludedValue( ) $ value)を
__get ( ボイド __取得 ( ) $名 )
__set ( ボイド _セット ( , $ varは 、 ) $ varValue)