common/models/entities/Permission.php
public static function findGroupPermissions( $ids = [], $config = [] ) {

		$permissionTable	= CoreTables::getTableName( CoreTables::TABLE_PERMISSION );
		$hierarchyTable		= CoreTables::getTableName( CoreTables::TABLE_MODEL_HIERARCHY );
		$idStr				= join( ",", $ids );

		return Permission::find()->leftJoin( $hierarchyTable, "`$permissionTable`.`id` = `$hierarchyTable`.`childId`" )
			->where( "`$hierarchyTable`.`parentType` = 'permission' AND `$hierarchyTable`.`parentId` IN ($idStr)" )->all();
	}
public static function findGroupPermissions( $ids = [], $config = [] ) {

		$permissionTable	= CoreTables::getTableName( CoreTables::TABLE_PERMISSION );
		$hierarchyTable		= CoreTables::getTableName( CoreTables::TABLE_MODEL_HIERARCHY );
		$idStr				= join( ",", $ids );

		return Permission::find()->leftJoin( $hierarchyTable, "`$permissionTable`.`id` = `$hierarchyTable`.`childId`" )
			->where( "`$hierarchyTable`.`parentType` = 'permission' AND `$hierarchyTable`.`parentId` IN ($idStr)" )->all();
	}
public static function findGroupPermissions ( $ ids = [ ] , $ config = [ ] ) { $ permissionTable = CoreTables :: getTableName ( CoreTables :: TABLE_PERMISSION ) ; $ hierarchyTable = CoreTables :: getTableName ( CoreTables :: TABLE_MODEL_HIERARCHY ) ; $ idStr = join ( "," , $ ids ) ; return Permission :: find ( ) -> leftJoin ( $ hierarchyTable , "`$permissionTable`.`id` = `$hierarchyTable`.`childId`" ) -> where ( "`$hierarchyTable`.`parentType` = 'permission' AND `$hierarchyTable`.`parentId` IN ($idStr)" ) -> all ( ) ; }
Find and return the children of given permissions id.

@param array $ids L0 id list
@param array $config
@return Permission[]
Find and return the children of given permissions id .