Fatal error: Call to undefined method CI_DB_mysql_driver::getwhere() in C:\xampp\htdocs\ci_learn\application\models\employee_model.php on line 18

<?php 
class Employee_model extends CI_Model {
function Employee_model()
{
    parent::__construct();
}

function employee_getall()
{
    $this->load->database();
    $query = $this->db->get('employee');
    return $query->result();
}

function employee_get()
{
    $this->load->database();
    $query = $this->db->getwhere('employee', array('id' => 1));
    return $query->row_array();
}
} ?>


Answer: According to the Document  getwhere() was changed to get_where() now its working