0
I am facing a problem at the time of recovering a specific field of primary key from my database via get()
. I have a primary key with two fields: ('Id', 'Idcontrato'), however, I have not found a way to define which field of my Primary key I wish to get:
$aditivo = $this->Aditivos->get($id);
What I would need in case would be:
$aditivo = $this->Aditivos->get($idcontrato);