Hello,
I'm having some problems with my custom databases. I've never had this problem before and can't seem to figure it out.
So the problem is that i can't get the primary key of objects when they have the fieldname
id...
In a normal situation i would retrieve the id of an object with
$obj->getPrimaryKey();
$obj->id;
$obj->lastInsertId();
None of these work, except when i change the name to something like
page_id.
I'm not sure if it has something to do with xPDOSimpleObject and xPDOObject..
- The components are build with CMPgenerator.
- Cache cleared from the manger and manualy.
- MODX version is 2.2.15, updated form 2.2.14 (2.2.14 had the same problem, tried updating)
- Can't start over, its a running project
If some one has a solution i would love to here it.