Doctrine2 conversion error

You probably changed a field from type string to type array in your entity but already have data the database. It’s failing at trying to convert an empty string from the database to an array.

If it’s a development database, simply delete it and create it again, or just delete the offending rows. Or you could convert all the empty strings to a:0:{} (a serialized empty array).

UPDATE table SET column="a:0:{}" WHERE column = "";

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)