Hello guys,
I've checked the documentation in doctrine, but I can't find the right way
to bind out parameters in a stored procedure. By the way, I'm using oci8
driver.
This is so far the code that I've tested without success.
$query = 'BEGIN App.LOGIN ( :code, :password, :ip, :name, :status, :date,
:session); END; ';
$connection = $this->getDoctrine()->getConnection();
$stmt = $connection->prepare($query);
$name = null;
$status = null;
$date = null;
$session = null;
$params = [
'code' => '1111',
'password' => '123456',
'ip' => '192.168.1.1',
'name' => $name,
'status' => $status,
'date' => $date,
'session' => $session
];
$stmt->execute($params);
$result = $stmt->fetchAll();
The error that I get is the following:
Warning: oci_fetch_all(): ORA-24374: define not done before fetch or
execute and fetch.
As you can see the name, status, date and session are out parameters of
this stored procedure but I can't find a way to extract them.
Thanks
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.