Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • do you have the sql generated from entity or you are generating entities from sql? Commented Jan 2, 2014 at 23:20
  • I'm writing the SQL by hand, then writing the entities by hand. We're not using generators in the project. Commented Jan 3, 2014 at 15:08
  • can you generate the entities with doctrine command line and check your and their mapping file(just to be sure what you write in the entities is the same with the doctrine generated entities.) Commented Jan 3, 2014 at 16:08
  • I'll take a look, but I'm not sure how that would make anything different, because the generator would have to refer either to the existing schema or the existing entity mapping in the annotations. Commented Jan 3, 2014 at 16:16
  • So to accomplish this, I generated mapping from the SQL file following this cookbook entry: symfony.com/doc/current/cookbook/doctrine/…. It is incapable of recognizing the join table with metadata. It just tries to map a ManyToMany between GradePointAverage and Assessment while ignoring the metadata field for point value. Commented Jan 3, 2014 at 17:14