Il costruttore consente l'oggetto relazione da configurare.
__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 stringa $ foriegnKey: la chiave Foriegn nell'oggetto corrente che questo rapporto deve essere creato sul
- $otherTable : the other table this relationship is with stringa $ otherTable: l'altra tabella questo rapporto è con
- $otherTableForiegnKey : the key in the other table that this relationship is with stringa $ otherTableForiegnKey: la chiave dell'altra tabella che questo rapporto è con
- $relationName : the name of the relationship stringa $ RelationName: il nome della relazione
- $relationType : the type of the relationship if it is a one to one relationship or not stringa $ relationType: il tipo di rapporto se è un rapporto uno a uno oppure no
AddExcludedValue ( AddExcludedValue vuoto ( ) $ Valore)
Gli ordini gli elementi che vengono restituiti nel rapporto
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) vuoto addOrderBy (string $ fieldName, [string $ orderDirection = null])
- $fieldName : the field name to be ordered stringa $ fieldName: il nome del campo da ordinare
- $orderDirection : the direction the field should be ordered. stringa $ orderDirection: la direzione del campo deve essere ordinato. Questo può prendere la RocksDesc valori o RocksAsc.
La aggiunge un oggetto relazione all'oggetto relazione esistente
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) vuoto AddRelation (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 stringa $ foriegnKey: la chiave Foriegn nell'oggetto corrente che questo rapporto deve essere creato sul
- $otherTable : the other table this relationship is with stringa $ otherTable: l'altra tabella questo rapporto è con
- $otherTableForiegnKey : the key in the other table that this relationship is with stringa $ otherTableForiegnKey: la chiave dell'altra tabella che questo rapporto è con
- $relationName : the name of the relationship stringa $ RelationName: il nome della relazione
- $relationType : the type of the relationship if it is a one to one relationship or not stringa $ relationType: il tipo di rapporto se è un rapporto uno a uno oppure no
Alternative ( Alternative vuoto ( ) $ Relazione)
GetNextAlternativeRelation () GetNextAlternativeRelation vuoto ()
Restituisce l'SQL che rappresenta l'ordine, questo viene di solito utilizzato internamente.
GetOrderBy () GetOrderBy vuoto ()
Questo è il numero di relazioni questa relazione ha
HasRelations () HasRelations void ()
IsExcludedValue ( IsExcludedValue vuoto ( ) $ Valore)
__get ( __ vuoto get ( ) $ Name)
__set ( void __ set ( , $ Var, ) $ VarValue)