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 … Read more

Unique Constraints in Doctrine 2, Symfony 2

In the Table annotation, you can also set an index for multiple columns. /** * @ORM\Entity * @ORM\Table(name=”ecommerce_products”,uniqueConstraints={ * @ORM\UniqueConstraint(name=”search_idx”, columns={“name”, “email”})}) */ or with YAML format: Namespace\Entity\EntityName: type: entity table: ecommerce_products uniqueConstraints: uniqueConstraint: columns: [name, email]

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