getCountSubquery() публичный Метод

Returns the count sub-query for a relation, used for relation filters (whereHas in the DataModel).
public getCountSubquery ( string $name, string $tableAlias = null ) : JDatabaseQuery
$name string The relation to get the sub-query for
$tableAlias string The alias to use for the local table
Результат JDatabaseQuery
Пример #1
0
 /**
  * @group       RelationManager
  * @group       RelationManagerGetCountSubquery
  * @covers      FOF30\Model\DataModel\RelationManager::getCountSubquery
  */
 public function testGetCountSubqueryException()
 {
     $this->setExpectedException('\\FOF30\\Model\\DataModel\\Relation\\Exception\\RelationNotFound');
     $model = $this->buildModel();
     $relation = new RelationManager($model);
     $relation->getCountSubquery('test');
 }