You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have code like this:
$sql = "SELECT id_cp_mk id, id_mk mataKuliahId, deskripsi, deskripsi_inggris deskripsiEn , bobot, urutan
FROM cp_mk WHERE id_mk = :idmk ";
$query = $this->db->query($sql, ['idmk' => $id]);
$result = $query->fetchAll(Db::FETCH_FUNC, array(RencanaEvaluasiMk::class, 'buildFromPdo'));
and function static
class RencanaEvaluasiMk {
public static function buildFromPdo( $id, $mataKuliahId, $deskripsi,
$deskripsiEn, $bobot, $urutan )
{
$this->id = new RencanaEvaluasiMkId($id);
$this->mataKuliahId = new MataKuliahId($mataKuliahId);
$this->deskripsi = $deskripsi;
$this->deskripsiEn = $deskripsiEn;
$this->urutan = $urutan;
$this->bobot = $bobot;
}
}
then i'm get error
could not call user-supplied function
how to fix this. ?
Beta Was this translation helpful? Give feedback.
All reactions