/** * Try to find a model with the given fields, if one cannot be found, * create it and set the fields we've search with to it. Save the model to the database. * @param string $model * @param array $values * @return Jam_Model */ public static function find_or_create($model, array $values) { return Jam::find_or('Jam::create', $model, $values); }