Closed nimeso closed 6 years ago
I was expecting that actually, either drop the column on the task table or use a different name in the many many extra fields :)
Thanks heaps @UndefinedOffset sorry, I'm not quite following :( Thanks for all your help. could you explain a bit more or send me my code with the corrections?
Your code is ok, the problem is the Task object (and it's database table) has a field called SortOrder, and your many many extra fields does as well. So when the queries try to run it sees two fields in the database. ao you need to resolve the conflict by either changing the name of your sort column in the many many extra fields to something unique or remove the field from the task class and database table if it's not needed. Either solution should resolve the ambitious column name issue. If I remember right it's a limitation of the orm in silverstripe 3.x where it won't prefix fields with their table name in some scenarios.
Sorted! (see the pun there) thanks.
I'm getting this error 'Column 'SortOrder' in field list is ambiguous'
Parent
Child base class