Конструктор позволяет отношении объект, который будет настроен.
__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: 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: тип отношения, если это отношение один к одному или не
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: 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: тип отношения, если это отношение один к одному или не
Alternative ( пустота Альтернатива ( ) $ Отношение)
GetNextAlternativeRelation () пустота GetNextAlternativeRelation ()
Возвращает SQL представляет заказа, это обычно для внутреннего использования.
GetOrderBy () пустота GetOrderBy ()
Это число отношений эти отношения не имеет
HasRelations () пустота HasRelations ()
IsExcludedValue ( пустота IsExcludedValue ( ) $ Значение)
__get ( недействительным __ get ( ) $ Имя)
__set ( Набор недействительными __ ( , $ VAR, ) $ VarValue)