Метод | Описание | |
---|---|---|
__construct ( string | object $entity, string | object $foreignEntity, null | string $foreignKey = null, null | string $localKey = null, null | string | object $junction = null, null | string $junctionLocalKey = null, null | string $junctionForeignKey = null ) | Many occurrences in local entity relate to many occurrences in foreign entity and vice versa. | |
execute ( ) : SplStack | ||
getForeignEntity ( ) : object | string | ||
getForeignKey ( ) : null | string | ||
getJunction ( ) : null | object | string | ||
getJunctionForeignKey ( ) : null | string | ||
getJunctionLocalKey ( ) : null | string | ||
getLocalKey ( ) : null | string | ||
getQuery ( ) : |
Get relation query |
public __construct ( string | object $entity, string | object $foreignEntity, null | string $foreignKey = null, null | string $localKey = null, null | string | object $junction = null, null | string $junctionLocalKey = null, null | string $junctionForeignKey = null ) | ||
$entity | string | object | |
$foreignEntity | string | object | |
$foreignKey | null | string | Default field name is {foreign primary key name} |
$localKey | null | string | Default field name is {local primary key name} |
$junction | null | string | object | Default table name is {local entity table name}_{foreign entity table name} |
$junctionLocalKey | null | string | Default field name is {local table name}_{$localKey} |
$junctionForeignKey | null | string | Default field name is {foreign table name}_{$foreignKey} |
public getForeignEntity ( ) : object | string | ||
Результат | object | string |
public getJunctionForeignKey ( ) : null | string | ||
Результат | null | string |
public getJunctionLocalKey ( ) : null | string | ||
Результат | null | string |