O construtor permite que o objeto de relação a ser configurada.
__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 $ relationType = null])
- $foriegnKey : the foriegn key in the current object that this relationship should be created on string $ foriegnKey: a chave estrangeira 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 esta 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 relationType string $: o tipo de relação se é um relacionamento 1-1 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. cadeia orderDirection $: a direção que o campo deve ser ordenada. Isto pode levar a RocksDesc valores ou RocksAsc.
O adiciona um objeto relação com o objeto 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 $ relationType = null])
- $foriegnKey : the foriegn key in the current object that this relationship should be created on string $ foriegnKey: a chave estrangeira 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 esta 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 relationType string $: o tipo de relação se é um relacionamento 1-1 ou não
Alternative ( Alternative void ( ) $ Parentesco)
GetNextAlternativeRelation () GetNextAlternativeRelation void ()
Retorna o SQL que representa a ordem, esta é 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 ( vazio __get ( ) $ Name)
__set ( __set void ( , $ Var, ) $ VarValue)