@ -143,7 +143,7 @@ class SqlCriteria
return $this;
}
public function whereJoin($join_table_name, $cond, $value)
public function whereJoin($join_table_name, $cond, $value = null)
{
$join_table_placeholder = $this->getTablePh($join_table_name);
if (is_array($cond)) {