I'm having a problem retrieving a specific field from the primary key of my database via get()
. I have a primary key with two fields: ('Id', 'IdContract'), however, I have not found a way to define which field of my primary key I want to get:
$aditivo = $this->Aditivos->get($id);
What I would need in this case would be:
$aditivo = $this->Aditivos->get($idcontrato);