public function asAssociativeArray($key, array $wheres = array()) { $results = parent::select($this->table, $wheres); return parent::getAssociativeArray($results, $key); }