생성자는 관계 개체를 구성할 수 있습니다.
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __ 구조 (otherTable 문자열 $ foriegnKey, 문자열 $, 문자열 $ 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 그것이 1-1 관계인지 아닌지 관계의 유형 : $ 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 (otherTable 문자열 $ foriegnKey, 문자열 $, 문자열 $ 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 그것이 1-1 관계인지 아닌지 관계의 유형 : $ relationType을 정리할
Alternative ( 공극 대체 ( ) 관계 $)
GetNextAlternativeRelation () 공극 GetNextAlternativeRelation ()
이것은 보통 내부적으로 사용되며, 주문을 대표하는 SQL을 반환합니다.
GetOrderBy () 무효 GetOrderBy ()
이것은이 관계가 가진 관계의 번호입니다
HasRelations () 공극 HasRelations ()
IsExcludedValue ( 무효 IsExcludedValue ( ) 값 $)
__get ( 공극 __ 구하기 ( ) 이름 $)
__set ( 공극 __ 세트 ( , 은 $ var, ) $ varValue)