/** * Gets all of the records that satisfy the search parameters. * * @param array $params The search parameters * @return \Cactus\Collection */ public function find(array $params) { $query = new \Peyote\Select($this->table); foreach ($params as $key => $value) { $query->where($key, '=', $value); } $result = $this->adapter->select($query->compile(), $query->getParams()); return $this->formCollection($result); }