/** * special get overriding the model class in order to load the params of the email * @param array $columns * @param array $conditions * @return type */ function get($columns = array(), $conditions = array()) { $results = parent::get($columns, $conditions); if (is_array($results) && !isset($results['params'])) { foreach ($results as &$result) { $this->getParams($result); } } else { $this->getParams($results); } return $results; }