[eluser]Atas[/eluser]
Hello, DataMapper OverZealous Edition is great for me. But i have a question.
Can i set the primary key field name?. I have a lot of tables that primary key field name is "xxx_id". And i don't want to change it to "id".
I want to do something like this:
Code:
class Test extends DataMapper {
var $table = 'testing';
var $pk_filedname = 'test_id'; //<----
function __construct($id = NULL)
{
parent::__construct($id);
}
}