Yes the yaml specifies a primary key and the ddl being generated also
specifies one. As a matter of fact the real table that I am trying to unload
and load has both a primary and foreign key.
The test table is just a re-creation of the problem.  See ddl below:
 
CREATE TABLE testtable
    (
        id INT NOT NULL AUTO_INCREMENT ,
        city CHAR(25) COLLATE utf8_unicode_ci NOT NULL ,
        officeuid CHAR(13) COLLATE utf8_unicode_ci NOT NULL ,
        county CHAR(55) COLLATE utf8_unicode_ci NOT NULL ,
        PRIMARY KEY(id)
    )
    ENGINE = InnoDB DEFAULT CHARSET = utf8 
 
Thanks.
 
  _____  

From: symfony-users@googlegroups.com [mailto:symfony-users@googlegroups.com]
On Behalf Of Carl
Sent: Sunday, April 24, 2011 7:55 PM
To: symfony-users@googlegroups.com
Subject: Re: [symfony-users] [Symfony2] Doctrine2 Associated Entities as Id
Fields issue
 
It sounds like you have an entity without a primary/foreign key defined for
it. If you're certain that your entities have the correct annotations, make
sure any database tables match them. Every entity must have a
primary/foreign key or it won't work with Doctrine. It's kind of annoying
since not every entity needs a primary key. Try adding a primary key to all
of you entities and see if the problem goes away.
-- 
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
 
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to