Answer the question
In order to leave comments, you need to log in
How to overwrite primary_key in Kohana 3?
Available model
class Model_Order extends ORM {
protected $_table_name = 'orders';
protected $_primary_key = 'number';
.......................
}
ORM::factory('order')->values(array(
'number' => 123456
))->create();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question