O construtor permite que o objecto relação a ser configurado.
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __ construct (string $ foriegnKey, string $ tbl_outra, string $ otherTableForiegnKey, [string $ RelationName = null], [string TipoDoRelacionamento $ = null])
- $foriegnKey : the foriegn key in the current object that this relationship should be created on string $ foriegnKey: a chave foriegn no objeto atual que esta relação deve ser criado em
- $otherTable : the other table this relationship is with string $ tbl_outra: outra tabela esta relação é com
- $otherTableForiegnKey : the key in the other table that this relationship is with string $ otherTableForiegnKey: a chave na outra tabela que essa relação é com
- $relationName : the name of the relationship string $ RelationName: o nome da relação
- $relationType : the type of the relationship if it is a one to one relationship or not amarrá $ TipoDoRelacionamento: o tipo de a relação se é uma relação de 12:59 ou não
AddExcludedValue ( AddExcludedValue vazio ( ) $ Value)
As ordens dos itens que são devolvidos na relação
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) AddOrderBy vazio (string $ fieldName, [string OrderDirection $ = null])
- $fieldName : the field name to be ordered string $ fieldName: o nome do campo a ser ordenado
- $orderDirection : the direction the field should be ordered. OrderDirection string $: a direção do campo devem ser ordenados. Isso pode levar a RocksDesc valores ou RocksAsc.
O adiciona um objeto relação ao objeto de relação existente
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) AddRelation void (string $ foriegnKey, string $ tbl_outra, string $ otherTableForiegnKey, [string $ RelationName = null], [string TipoDoRelacionamento $ = null])
- $foriegnKey : the foriegn key in the current object that this relationship should be created on string $ foriegnKey: a chave foriegn no objeto atual que esta relação deve ser criado em
- $otherTable : the other table this relationship is with string $ tbl_outra: outra tabela esta relação é com
- $otherTableForiegnKey : the key in the other table that this relationship is with string $ otherTableForiegnKey: a chave na outra tabela que essa relação é com
- $relationName : the name of the relationship string $ RelationName: o nome da relação
- $relationType : the type of the relationship if it is a one to one relationship or not amarrá $ TipoDoRelacionamento: o tipo de a relação se é uma relação de 12:59 ou não
Alternative ( Alternativa void ( ) $ Relação)
GetNextAlternativeRelation () GetNextAlternativeRelation void ()
Retorna o SQL que representa a ordem, isso geralmente é usado internamente.
GetOrderBy () GetOrderBy vazio ()
Este é o número de relações esta relação tem
HasRelations () HasRelations (void)
IsExcludedValue ( IsExcludedValue vazio ( ) $ Value)
__get ( void __ get ( ) $ Nome)
__set ( __ set (void , $ Var, ) $ VarValue)