hi,
I can't update and i don't know why.
My code :
$devis = new Devis();
//DebugBreak("[email protected];d=1,p=0");
$result = $devis->findFirst(
[
"conditions" => "ID_Devis = ?1",
"bind" =>
[
1 => $id
]
]
);
$status = new Status();
$s = $status->findFirst(
[
"conditions" => "Libelle = ?1",
"bind" =>
[
1 => "Valide"
]
]
);
$result->ID_Status = $s->ID_Status;
$result->update();
And the ID_Status is different
function update return TRUE. So why i haven't an update ?