silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
719 stars 820 forks source link

FIX Unknown column 'ClassName' in field list #11127

Closed lekoala closed 4 months ago

lekoala commented 4 months ago

Fixes https://github.com/silverstripe/silverstripe-framework/issues/10737

Description

See related issue

Manual testing steps

See related issue

Issues

https://github.com/silverstripe/silverstripe-framework/issues/10737

Pull request checklist

lekoala commented 4 months ago

So this is a first attempt to get the ball rolling Ignoring the case clause is the easy way to prevent the error it would be better to make the actual join, but that would require more analysis to know what is the relation being used in that case, not exactly sure how/when to do that

lekoala commented 4 months ago

Seems sensible - if I'm understanding this code correctly, it shouldn't introduce new potential collisions, since this table isn't being included in the table anyway and therefore couldn't collide with anything?

that's the idea. it seems to work just fine in my case and the field has the right value (in my case, it's a MemberID ...)

lekoala commented 4 months ago

any other wishes? :)

michalkleiner commented 4 months ago

any other wishes? :)

I'd like a trip to Bali, thanks!