HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Limitation in Gdn_Model - Cannot handle composite Primary Keys
I spotted this issue today, while I was testing an Alpha version of the Badges plugin. One of my tables has a composite primary key (a surrogate key would be superfluous) and, although Gdn_Schema::PrimaryKey() returns, correctly, an array with two field names, class Gdn_Model only takes the first one as the Primary key.… -
Re: Limitation in Gdn_Model - Cannot handle composite Primary Keys
I'm not sure I understand this. However, I don't have any issue, I just found myself wondering how composite Primary Keys were handled by Gdn_Model, and I found out that they aren't. As @hbf stated, it's clearly intentional, but it's incorrect. If a PK contains fields, taking the first one is as wrong as taking two of…
2 results