Skip to content

Condition

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

Condition [>= 1.0.0]

Example condition

use \krzysztofzylka\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 [>= 1.0.0]
  • orWhere [>= 1.0.0]
  • andWhere [>= 1.0.0]
Clone this wiki locally