Can somebody explain me where the
->setPrepareParams(array $prepareParams)
is called in Zend\\Db\\Adapter\\Driver\\Sqlsrv\\Statement.php?<
In your database configuration, what is your connection driver? PHP supports parameterized queries only through PDO, and Zend Framework cannot go beyond what PHP is capable of. Therefore, to get array("Personalnummer" => $personalnumber)
to work, you need to have configuration driver key be pdo_sqlsrv. Sounds like you have 'driver' => 'Sqlsrv'
instead.