Heratio Framework API Reference

QubitCultureFallback
in package

Table of Contents

Methods

addFallbackCriteria()  : Criteria
Add culture fallback join to a Criteria.

Methods

addFallbackCriteria()

Add culture fallback join to a Criteria.

public static addFallbackCriteria(Criteria $criteria, string $className[, array<string|int, mixed> $options = [] ]) : Criteria

In the Propel world, this adds a LEFT JOIN to the i18n table with COALESCE for the current culture → source culture. In the stub, we add the join directly to the Criteria.

Parameters
$criteria : Criteria

Existing criteria

$className : string

Class name (e.g. 'QubitTaxonomy')

$options : array<string|int, mixed> = []

Options

Return values
Criteria

        
On this page

Search results