Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

DatabaseTables and DatabaseColumns

edited June 2006 in Vanilla 1.0 Help
I like using the DatabaseTables and DatabaseColumns arrays, but I've come accross a problem. If you check the classes of objects like Category, Comment and Discussion you can see that there is still hard coded references to the fieldnames... I know why Mark hasn't changed this, because it's not that easy... The $DatabaseTables and $DatabaseColumns are stored in the $Context object... but that's not available in those classes. But if these fieldnames stay hard coded, the DatabaseTables and DatabaseColumns arrays have no use...


  • MarkMark Vanilla Staff
    Where are the references intact (exactly)?

    I thought I searched the entire application and removed all old references.
  • MarkMark Vanilla Staff
    Oh snap. I see now...

    Hmm. I'll have to think about this one...
  • MarkMark Vanilla Staff
    Well, I guess I should make all of those classes implement delegation anyway. I'll fix that up tomorrow.
  • MarkMark Vanilla Staff
    You know, I had nightmares all night about this. I'm absolutely dumbfounded that I overlooked this.

    *kills self*
  • edited June 2006
  • MarkMark Vanilla Staff
  • Actually, I was referring to your "kills self" comment.
  • MarkMark Vanilla Staff
    Awwww - it's all good, dude :)

  • edited June 2006
    Anything involving pizza must be good.
  • lechlech Chicagoland
  • edited June 2006
    EDIT: This comment didn't make anything sense, as I didn't look at the Swell blog before writing this :P
This discussion has been closed.