oh, found out "...for Doctrine 2.1 even foreign keys as primary keys are supported."
2011/4/25 Максим Воробей <neb...@gmail.com> > I follow manual at > http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/composite-primary-keys.html#identity-through-foreign-entities > <http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/composite-primary-keys.html#identity-through-foreign-entities>and, > as you can see, i also added a primary key in annotation > /** > * @orm:Id @orm:ManyToOne(targetEntity="Article") > */ > > 2011/4/25 Carl <carl.par...@gmail.com> > >> 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 your 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