I try to call some custom function of our PostgreSQL database with doctrine but it doesn't work.
$query = $this->_em->getConnection()
->prepare('SELECT security.check_login($1, $2, $3, $4, 1, $5, 1, $6, false)');
$query->bindValue(1, 'myname', \Doctrine\DBAL\Types\Type::STRING);
$query->bindValue(2, 'mypass', \Doctrine\DBAL\Types\Type::STRING);
$query->bindValue(3, '35we74', \Doctrine\DBAL\Types\Type::STRING);
$query->bindValue(4, 'a', \Doctrine\DBAL\Types\Type::STRING);
$query->bindValue(5, 'b', \Doctrine\DBAL\Types\Type::STRING);
$query->bindValue(6, '5fuf6d32qbm0hivj739vi8r0t3', \Doctrine\DBAL\Types\Type::STRING);
var_dump($query->execute()); // return false
var_dump($query->fetchColumn()); // return false
Does anyone know how to make such query?
psql? Since execute returns false, what's the error from the database?