Skip to content

Condition

Krzysztof Żyłka edited this page Dec 27, 2022 · 5 revisions

Condition

Example condition

use DatabaseManager\Condition;

$condition = (new Condition())
    ->where('user.id', '1');

$condition2 = (new Condition())
    ->where('user.id', '3', '>=');

$conditionNotAllowUser = (new Condition())
    ->orWhere(
        (new Condition())
        ->where(['user.blocked', 0])
        ->where(['user.disabled', 0])
    );

Available method

  • Where
  • orWhere
  • andWhere
Clone this wiki locally