Public Member Functions | |
__construct (RedBeanModelAttributeToDataProviderAdapter $modelAttributeToDataProviderAdapter, RedBeanModelJoinTablesQueryAdapter $joinTablesAdapter, $setDistinct=false) | |
getTableAliasNameForBaseModel () | |
getTableAliasNameForRelatedModel () | |
resolveJoins ($onTableAliasName=null, $canUseFromJoins=true) | |
resolveOnlyAttributeJoins ($onTableAliasName=null, $canUseFromJoins=true) | |
resolveOnTableAliasName ($onTableAliasName=null) | |
Static Public Member Functions | |
static | makeColumnNameWithTableAlias ($tableAliasName, $columnName) |
Protected Member Functions | |
resolveJoinsForAttribute ($onTableAliasName, $canUseFromJoins=true) | |
resolveJoinsForDerivedRelationViaCastedUpModel ($onTableAliasName, $canUseFromJoins=true) | |
resolveJoinsForDerivedRelationViaCastedUpModelThatIsCastedUp ($onTableAliasName, $canUseFromJoins=true) | |
resolveJoinsForDerivedRelationViaCastedUpModelThatIsManyToMany ($onTableAliasName) | |
resolveJoinsForInferredRelation ($onTableAliasName, $canUseFromJoins=true) | |
resolveJoinsForInferredRelationThatIsCastedUp ($onTableAliasName, $canUseFromJoins=true) | |
resolveAttributeModelClassNameWithCastingHintForCastingDown ($attributeModelClassName) | |
resolveJoinsForAttributeOnDifferentModel ($onTableAliasName, $canUseFromJoins=true) | |
resolveJoinsForAttributeOnSameModelThatIsARelation ($onTableAliasName) | |
resolveJoinsForAttributeOnSameModelThatIsNotARelation ($onTableAliasName) | |
resolveJoinsForAttributeOnDifferentModelThatIsARelation ($onTableAliasName, $canUseFromJoins=true) | |
resolveLeftJoinsForARelationAttribute ($onTableAliasName) | |
resolveJoinsForAttributeOnDifferentModelThatIsNotARelation ($onTableAliasName, $canUseFromJoins=true) | |
addMixedInOrCastedUpFromJoinsForAttribute ($onTableAliasName) | |
addMixedInOrCastedUpLeftJoinsForAttribute ($onTableAliasName) | |
addFromJoinsForAttributeThatIsMixedIn ($onTableAliasName) | |
addFromJoinsForAttributeThatIsCastedUp () | |
addLeftJoinsForAttributeThatIsMixedIn ($onTableAliasName) | |
addLeftJoinForMixedInAttribute ($onTableAliasName, $attributeTableName) | |
addLeftJoinsForAttributeThatIsCastedUp ($onTableAliasName) | |
addLeftJoinsForARelationAttribute ($onTableAliasName) | |
resolveSettingDistinctForARelationAttributeThatIsHasMany () | |
resolveSetToDistinct () | |
resolveJoinsForForARelationAttributeThatIsManyToMany ($onTableAliasName) | |
resolveJoinsForForARelationAttributeThatIsAHasManyVariant ($onTableAliasName) | |
resolveJoinsForForARelationAttributeThatIsAHasOne ($onTableAliasName) | |
resolveAndProcessLeftJoinsForAttributeThatIsCastedDownOrUp ($modelClassName, $castedDownModelClassName, $onTableAliasName) | |
processLeftJoinsForAttributeThatIsCastedDown ($modelClassName, $castedDownModelClassName, $onTableAliasName) | |
resolveModelDerivationPathToItemForCastingDown ($modelClassName, $castedDownModelClassName) | |
Static Protected Member Functions | |
static | resolveForeignKey ($idName) |
static | resolveModelClassNameThatCanHaveTable ($modelClassName, $castedDownModelClassName) |
Protected Attributes | |
$modelAttributeToDataProviderAdapter | |
$joinTablesAdapter | |
$setDistinct | |
$resolvedOnTableAliasName | |
$tableAliasNameForBaseModel | |
$tableAliasNameForRelatedModel |
Base Builder for creating joins.
Definition at line 40 of file ModelJoinBuilder.php.
__construct | ( | RedBeanModelAttributeToDataProviderAdapter $ | modelAttributeToDataProviderAdapter, | |
RedBeanModelJoinTablesQueryAdapter $ | joinTablesAdapter, | |||
$ | setDistinct = false | |||
) |
RedBeanModelAttributeToDataProviderAdapter | $modelAttributeToDataProviderAdapter | |
RedBeanModelJoinTablesQueryAdapter | $joinTablesAdapter | |
boolean | $setDistinct |
Definition at line 106 of file ModelJoinBuilder.php.
static makeColumnNameWithTableAlias | ( | $ | tableAliasName, | |
$ | columnName | |||
) | [static] |
string | $tableAliasName | |
string | $columnName |
Definition at line 83 of file ModelJoinBuilder.php.
static resolveForeignKey | ( | $ | idName | ) | [static, protected] |
getTableAliasNameForBaseModel | ( | ) |
Definition at line 120 of file ModelJoinBuilder.php.
getTableAliasNameForRelatedModel | ( | ) |
NotSupportedException |
Definition at line 129 of file ModelJoinBuilder.php.
resolveJoins | ( | $ | onTableAliasName = null , |
|
$ | canUseFromJoins = true | |||
) |
null | $onTableAliasName | |
bool | $canUseFromJoins |
Definition at line 143 of file ModelJoinBuilder.php.
resolveOnlyAttributeJoins | ( | $ | onTableAliasName = null , |
|
$ | canUseFromJoins = true | |||
) |
null | $onTableAliasName | |
bool | $canUseFromJoins |
Definition at line 172 of file ModelJoinBuilder.php.
resolveOnTableAliasName | ( | $ | onTableAliasName = null |
) |
null | $onTableAliasName |
Definition at line 186 of file ModelJoinBuilder.php.
resolveJoinsForAttribute | ( | $ | onTableAliasName, | |
$ | canUseFromJoins = true | |||
) | [protected] |
$onTableAliasName | ||
bool | $canUseFromJoins |
Definition at line 200 of file ModelJoinBuilder.php.
resolveJoinsForDerivedRelationViaCastedUpModel | ( | $ | onTableAliasName, | |
$ | canUseFromJoins = true | |||
) | [protected] |
$onTableAliasName | ||
bool | $canUseFromJoins |
Definition at line 231 of file ModelJoinBuilder.php.
resolveJoinsForDerivedRelationViaCastedUpModelThatIsCastedUp | ( | $ | onTableAliasName, | |
$ | canUseFromJoins = true | |||
) | [protected] |
$onTableAliasName | ||
bool | $canUseFromJoins |
Definition at line 260 of file ModelJoinBuilder.php.
resolveJoinsForDerivedRelationViaCastedUpModelThatIsManyToMany | ( | $ | onTableAliasName | ) | [protected] |
$onTableAliasName |
Definition at line 279 of file ModelJoinBuilder.php.
resolveJoinsForInferredRelation | ( | $ | onTableAliasName, | |
$ | canUseFromJoins = true | |||
) | [protected] |
$onTableAliasName | ||
bool | $canUseFromJoins |
NotImplementedException |
Definition at line 302 of file ModelJoinBuilder.php.
resolveJoinsForInferredRelationThatIsCastedUp | ( | $ | onTableAliasName, | |
$ | canUseFromJoins = true | |||
) | [protected] |
$onTableAliasName | ||
bool | $canUseFromJoins |
Definition at line 329 of file ModelJoinBuilder.php.
resolveAttributeModelClassNameWithCastingHintForCastingDown | ( | $ | attributeModelClassName | ) | [protected] |
$attributeModelClassName |
Definition at line 351 of file ModelJoinBuilder.php.
resolveJoinsForAttributeOnDifferentModel | ( | $ | onTableAliasName, | |
$ | canUseFromJoins = true | |||
) | [protected] |
$onTableAliasName | ||
bool | $canUseFromJoins |
Definition at line 366 of file ModelJoinBuilder.php.
resolveJoinsForAttributeOnSameModelThatIsARelation | ( | $ | onTableAliasName | ) | [protected] |
$onTableAliasName |
Definition at line 385 of file ModelJoinBuilder.php.
resolveJoinsForAttributeOnSameModelThatIsNotARelation | ( | $ | onTableAliasName | ) | [protected] |
resolveJoinsForAttributeOnDifferentModelThatIsARelation | ( | $ | onTableAliasName, | |
$ | canUseFromJoins = true | |||
) | [protected] |
$onTableAliasName | ||
bool | $canUseFromJoins |
Definition at line 406 of file ModelJoinBuilder.php.
resolveLeftJoinsForARelationAttribute | ( | $ | onTableAliasName | ) | [protected] |
$onTableAliasName |
Reimplemented in ModelWhereAndJoinBuilder.
Definition at line 425 of file ModelJoinBuilder.php.
resolveJoinsForAttributeOnDifferentModelThatIsNotARelation | ( | $ | onTableAliasName, | |
$ | canUseFromJoins = true | |||
) | [protected] |
$onTableAliasName | ||
bool | $canUseFromJoins |
Definition at line 437 of file ModelJoinBuilder.php.
addMixedInOrCastedUpFromJoinsForAttribute | ( | $ | onTableAliasName | ) | [protected] |
addMixedInOrCastedUpLeftJoinsForAttribute | ( | $ | onTableAliasName | ) | [protected] |
$onTableAliasName |
Definition at line 472 of file ModelJoinBuilder.php.
addFromJoinsForAttributeThatIsMixedIn | ( | $ | onTableAliasName | ) | [protected] |
addFromJoinsForAttributeThatIsCastedUp | ( | ) | [protected] |
Definition at line 507 of file ModelJoinBuilder.php.
addLeftJoinsForAttributeThatIsMixedIn | ( | $ | onTableAliasName | ) | [protected] |
$onTableAliasName |
Definition at line 518 of file ModelJoinBuilder.php.
addLeftJoinForMixedInAttribute | ( | $ | onTableAliasName, | |
$ | attributeTableName | |||
) | [protected] |
$onTableAliasName | ||
$attributeTableName |
Definition at line 530 of file ModelJoinBuilder.php.
addLeftJoinsForAttributeThatIsCastedUp | ( | $ | onTableAliasName | ) | [protected] |
$onTableAliasName |
Definition at line 545 of file ModelJoinBuilder.php.
addLeftJoinsForARelationAttribute | ( | $ | onTableAliasName | ) | [protected] |
$onTableAliasName |
NotSupportedException |
Definition at line 557 of file ModelJoinBuilder.php.
resolveJoinsForForARelationAttributeThatIsManyToMany | ( | $ | onTableAliasName | ) | [protected] |
$onTableAliasName |
Definition at line 600 of file ModelJoinBuilder.php.
resolveJoinsForForARelationAttributeThatIsAHasManyVariant | ( | $ | onTableAliasName | ) | [protected] |
$onTableAliasName |
Definition at line 630 of file ModelJoinBuilder.php.
resolveJoinsForForARelationAttributeThatIsAHasOne | ( | $ | onTableAliasName | ) | [protected] |
$onTableAliasName |
Definition at line 647 of file ModelJoinBuilder.php.
resolveAndProcessLeftJoinsForAttributeThatIsCastedDownOrUp | ( | $ | modelClassName, | |
$ | castedDownModelClassName, | |||
$ | onTableAliasName | |||
) | [protected] |
$modelClassName | ||
$castedDownModelClassName | ||
$onTableAliasName |
Definition at line 666 of file ModelJoinBuilder.php.
processLeftJoinsForAttributeThatIsCastedDown | ( | $ | modelClassName, | |
$ | castedDownModelClassName, | |||
$ | onTableAliasName | |||
) | [protected] |
$modelClassName | ||
$castedDownModelClassName | ||
$onTableAliasName |
Definition at line 702 of file ModelJoinBuilder.php.
resolveModelDerivationPathToItemForCastingDown | ( | $ | modelClassName, | |
$ | castedDownModelClassName | |||
) | [protected] |
$modelClassName | ||
$castedDownModelClassName |
Definition at line 730 of file ModelJoinBuilder.php.
static resolveModelClassNameThatCanHaveTable | ( | $ | modelClassName, | |
$ | castedDownModelClassName | |||
) | [static, protected] |
$modelClassName | ||
$castedDownModelClassName |
NotSupportedException |
Definition at line 756 of file ModelJoinBuilder.php.