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

Notice: Trying to access array offset on value of type bool in .../runtime/lib/Propel.php on line 739 #1090

Closed
klemens-u opened this issue Jan 15, 2021 · 2 comments

Comments

@klemens-u
Copy link

Hi, I'm updating a symfony1 app to the latest FriendsOfSymfony + Propel versions (1.7.2)

I get the following error:

Notice: Trying to access array offset on value of type bool in .../runtime/lib/Propel.php on line 739

This line belongs to method processDriverOptions($source, &$write_to)

$source is

array (size=1)
'ATTR_PERSISTENT' => boolean true

The code expects $source, where my example is boolean, to be an array with a key "value".

$value = $optiondata['value'];

Any ideas? Thanks!

@mentalstring
Copy link

If you are using databases.yml, this is how I've been setting that type of attribute:

all:
  propel:
    class:          sfPropelDatabase
    param:
      classname:    PropelPDO
      # ...
      persistent:
        value:      true
      options:
        MYSQL_ATTR_MULTI_STATEMENTS:
          value:    false

@klemens-u
Copy link
Author

Thanks, that resolved it.

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