stof/StofDoctrineExtensionsBundle — Issue #86: Translations: Specified key was too long; max key length is 1000 bytes
Author: eichie
Created: 2011-11-26 10:29:33+00:00
State: open

on command 'app/console doctrine:schema:create'

CREATE TABLE ext_translations (id INT AUTO_INCREMENT NOT NULL, locale VARCHAR(8) NOT NULL, object_class VARCHAR(255) NOT NULL, field VARCHAR(32) NOT NULL, foreign_key VARCHAR(64) NOT NULL, content LONGTEXT DEFAULT NULL, INDEX translations_lookup_idx (locale, object_class, foreign_key), UNIQUE INDEX lookup_unique_idx (locale, object_class, foreign_key, field), PRIMARY KEY(id)) ENGINE = InnoDB;

On Mysql-5.1.56, InnoDB, UTF8 - i became following error:

[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes