$sb = new SelectBuilder();
$sb
->select('u.name')
->from('users', 'u')
->where('u.id = ?', $id)
;
public where ( $condition ) | ||
$condition | optional the query restriction predicates |
public function where(...$condition)
{
$condition = $this->prepareCondition($condition);
return $this->addQueryPart('where', $condition, false);
}