mini\Table\Contracts\MutableTableInterface::union() Method

public abstract

Signature

public abstract function union(mini\Table\Contracts\TableInterface $other): mini\Table\Contracts\TableInterface

Parameters

Name Type Default Description
$other mini\Table\Contracts\TableInterface required Documentation missing

Returns

mini\Table\Contracts\TableInterface

Documentation

Return rows that are in this table OR the other table (set union)

Rows are deduplicated by row ID. For OR conditions:

// WHERE status = 'active' OR status = 'pending'
$table->eq('status', 'active')->union($table->eq('status', 'pending'))

Inherited From

mini\Table\Contracts\TableInterface

Source

src/Table/Contracts/TableInterface.php:153