Der Konstruktor ermöglicht das Verhältnis Aufgabe konfiguriert werden.
__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 $ RelationsTyp = null])
- $foriegnKey : the foriegn key in the current object that this relationship should be created on string $ foriegnKey: die foriegn Schlüssel in das aktuelle Objekt, dass diese Beziehung auf erstellt werden soll
- $otherTable : the other table this relationship is with string $ otherTable: die andere Tabelle ist diese Beziehung mit
- $otherTableForiegnKey : the key in the other table that this relationship is with string $ otherTableForiegnKey: der Schlüssel in der anderen Tabelle, dass diese Beziehung ist mit
- $relationName : the name of the relationship string RelationName: der Name der Beziehung
- $relationType : the type of the relationship if it is a one to one relationship or not string $ RelationsTyp: die Art der Beziehung, wenn es sich um eine 1-1 Beziehung ist oder nicht
AddExcludedValue ( Leere AddExcludedValue ( ) $ Value)
Die Aufträge die Elemente, die in der Beziehung zurückgegeben werden
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) Leere AddOrderBy (string $ fieldname, [string $ orderDirection = null])
- $fieldName : the field name to be ordered string $ fieldName: der Feldname bestellt werden
- $orderDirection : the direction the field should be ordered. string $ orderDirection: Die Richtung sollte das Feld bestellt werden. Dies kann entweder die Werte RocksDesc oder RocksAsc.
Das fügt ein Relation-Objekt an die bestehende Beziehung Objekt
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) Leere AddRelation (string $ foriegnKey, string $ otherTable, string $ otherTableForiegnKey, [string $ RelationName = null], [string $ RelationsTyp = null])
- $foriegnKey : the foriegn key in the current object that this relationship should be created on string $ foriegnKey: die foriegn Schlüssel in das aktuelle Objekt, dass diese Beziehung auf erstellt werden soll
- $otherTable : the other table this relationship is with string $ otherTable: die andere Tabelle ist diese Beziehung mit
- $otherTableForiegnKey : the key in the other table that this relationship is with string $ otherTableForiegnKey: der Schlüssel in der anderen Tabelle, dass diese Beziehung ist mit
- $relationName : the name of the relationship string RelationName: der Name der Beziehung
- $relationType : the type of the relationship if it is a one to one relationship or not string $ RelationsTyp: die Art der Beziehung, wenn es sich um eine 1-1 Beziehung ist oder nicht
Alternative ( Leere Alternative ( ) $ Relation)
GetNextAlternativeRelation () Leere GetNextAlternativeRelation ()
Gibt die SQL, die die Bestellung, wird dies in der Regel intern verwendet.
GetOrderBy () Leere GetOrderBy ()
Dies ist die Anzahl der Beziehungen diese Beziehung hat
HasRelations () Leere HasRelations ()
IsExcludedValue ( Leere IsExcludedValue ( ) $ Value)
__get ( void __ get ( ) $ Name)
__set ( void __ set ( , $ Var, ) $ VarValue)