[Deprecated] DMZ 1.6.2 (DataMapper OverZealous Edition) |
[eluser]OverZealous[/eluser]
@Devon Lambert As it says in the manual, the id column is required, and must be an automatically incremented integer. No exceptions. The primary key must be ID. It cannot be renamed. If you want a different column name or type, make a separate column that is unique. @TheJim Thanks for the information. I hadn't heard of that, so I'll have to keep that in mind. Most likely I'm going to do away with the reliance on CodeIgniter's ActiveRecord some time in the future, which will revert the way the DB class works (I won't be creating a new one for each object). I've never liked some of the decisions, and I've already replaced the LIKE methods (why are they separate from other WHERE statements?) and added the ability to group queries (ie: parentheses). Nearly every AR method is already replicated in the DMZ source, excluding a few like join. But I've still got a lot of work in front of me. That will end up being a 2.0 kind of change. Probably along with all of the performance changes. |
Welcome Guest, Not a member yet? Register Sign In |