Skip to content

Commit

Permalink
Update Database.php
Browse files Browse the repository at this point in the history
Remove has method
  • Loading branch information
longxinH authored Apr 29, 2021
1 parent 67fce7d commit a5c70f4
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/Model/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,4 @@ public function exec($query, $map = [])
return parent::exec($query, $map);
}
}

/**
* @param $table
* @param $join
* @param null $where
*
* @return bool
*/
public function has($table, $join, $where = null)
{
$column = null;

$query = $this->query('SELECT EXISTS('.$this->selectContext($table, $join, $column, $where, 1).')');

if ($query && 1 === intval($query->fetchColumn())) {
return true;
}

return false;
}
}

0 comments on commit a5c70f4

Please sign in to comment.