$entity = '';
$comp_name '';
$db = DB::connection()->getPdo();
$stmt = $db->prepare("exec [foo].[prcBar] 'userlogin', 'userpass', ?, ?");
$stmt->bindParam(1, $entity, PDO::PARAM_INPUT_OUTPUT);
$stmt->bindParam(2, $comp_name, PDO::PARAM_INPUT_OUTPUT);
$stmt->execute();
print($entity);
print($comp_name);