I have a table who's PK is the tuple: (user_id, sotry_id).
how do i define that in Cakephp?
thank, Boris.
没用过cakephp,不过答案应该很简单:
http://book.cakephp.org/2.0/en/models/model-attributes.html
class Example extends AppModel {
public $primaryKey = 'example_id'; // example_id is the field name in the database
}