Returns the count subquery for DataModel's has() and whereHas() methods.
public getCountSubquery ( string $tableAlias = null ) : JDatabaseQuery | ||
$tableAlias | string | The alias of the local table in the query. Leave blank to use the table's name. |
return | JDatabaseQuery |