Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to a member function save() on null #119

Open
rvaldebenito35 opened this issue Oct 25, 2022 · 1 comment
Open

Call to a member function save() on null #119

rvaldebenito35 opened this issue Oct 25, 2022 · 1 comment

Comments

@rvaldebenito35
Copy link

Hi! I'm just getting following error after executing a store procedure... Call to a member function save() on null on line \vendor\yajra\laravel-pdo-via-oci8\src\Pdo\Oci8\Statement.php:735

// Save blob objects if set.
if ($result && count($this->blobObjects) > 0) {
    foreach ($this->blobObjects as $param => $blob) {
        /* @var OCILob $blob */
        $blob->save($this->blobBindings[$param]);
    }
}

It's happening when the param is set but the output retrieved is empty... It looks like is missing a isset before save...
I reported in case someone else has the same issue...

// Save blob objects if set.
if ($result && count($this->blobObjects) > 0) {
    foreach ($this->blobObjects as $param => $blob) {
        /* @var OCILob $blob */
        if(isset($this->blobBindings[$param])){
            $blob->save($this->blobBindings[$param]);
        }
    }
}
  • Operating System
  • PHP Version 8.0.8
  • PDO-VIA-OCI8 Version "v9.0.0"
@yajra
Copy link
Owner

yajra commented Oct 26, 2022

@rvaldebenito35 thanks for reporting, can you please provide some snippets to reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants