コンストラクタは、リレーションオブジェクトが設定できるようになります。
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __construct( 文字列 $ 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:それは1対1の関係であるかどうか関係の種類
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:それは1対1の関係であるかどうか関係の種類
Alternative ( ボイド 代替 ( ) $の関係 )
GetNextAlternativeRelation () ボイド GetNextAlternativeRelation()
順序を表すSQLを返します、これは通常、内部的に使用されます。
GetOrderBy () ボイド GetOrderBy()
これは、この関係は持っているリレーションの数です。
HasRelations () ボイド HasRelations()
IsExcludedValue ( ボイド IsExcludedValue( ) $値 )
__get ( ボイド __get( ) $名 )
__set ( ボイド __set( , $ VAR、 ) $ varValue)