Previous Page
modSelectCountPages()

Solar_Sql_Model_Related_HasMany
modSelectEager()

Next Page
newSelect()

modSelectEager()

public void modSelectEager ( Solar_Sql_Select $select )

When the native model is doing a select and an eager-join is requested for this relation, this method modifies the select to add the eager join.

Parameters

  • (Solar_Sql_Select) $select: The SELECT to be modified.

Returns

  • (void) The SELECT is modified in place.

Description

When the native model is doing a select and an eager-join is requested for this relation, this method modifies the select to add the eager join.

Does not add the foreign columns to the select, because that would result in really large result tables. Note that we fetch rows from the has-many relation separately, so not adding columns here is OK.