public function loadDefault($clientId)
{
// TODO: rewrite Scalr_Environment::loadDefault($clientId) for user-based
$info = $this->db->GetRow("SELECT * FROM client_environments WHERE client_id = ? LIMIT 1", array($clientId));
if (!$info) {
throw new Exception(sprintf(_('Default environment for clientId #%s not found'), $clientId));
}
return $this->loadBy($info);
}