El constructor permite que el objeto de relación que desea configurar.
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __ construct ($ string foriegnKey, string $ otherTable, 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: la clave externa en el objeto actual que esta relación debe ser creado en
- $otherTable : the other table this relationship is with $ string otherTable: la otra tabla esta relación es con
- $otherTableForiegnKey : the key in the other table that this relationship is with $ string otherTableForiegnKey: la llave en la otra tabla que esta relación es con
- $relationName : the name of the relationship $ string relationName: el nombre de la relación
- $relationType : the type of the relationship if it is a one to one relationship or not cadena $ RelationType: el tipo de la relación si se trata de una relación de uno a uno o no
AddExcludedValue ( void AddExcludedValue ( ) $ Valor)
Las órdenes de los elementos que se devuelven en la relación
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) void AddOrderBy (string $ fieldName, [string $ orderDirection = null])
- $fieldName : the field name to be ordered string $ fieldName: el nombre del campo será condenada
- $orderDirection : the direction the field should be ordered. $ string orderDirection: la dirección del campo debe ser ordenado. Esto puede tomar la RocksDesc valores o RocksAsc.
El agrega un objeto de relación con el objeto de relación existente
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) AddRelation vacío (cadena $ foriegnKey, string $ otherTable, 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: la clave externa en el objeto actual que esta relación debe ser creado en
- $otherTable : the other table this relationship is with $ string otherTable: la otra tabla esta relación es con
- $otherTableForiegnKey : the key in the other table that this relationship is with $ string otherTableForiegnKey: la llave en la otra tabla que esta relación es con
- $relationName : the name of the relationship $ string relationName: el nombre de la relación
- $relationType : the type of the relationship if it is a one to one relationship or not cadena $ RelationType: el tipo de la relación si se trata de una relación de uno a uno o no
Alternative ( void Alternativa ( ) $ Relación)
GetNextAlternativeRelation () GetNextAlternativeRelation vacío ()
Devuelve el SQL que representa el orden, esto generalmente se utiliza internamente.
GetOrderBy () void GetOrderBy ()
Este es el número de relaciones esta relación tiene
HasRelations () HasRelations vacío ()
IsExcludedValue ( void IsExcludedValue ( ) $ Valor)
__get ( __ vacío get ( ) $ Nombre)
__set ( void __ set ( , $ Var, ) $ VarValue)