I want to get real last sql generate from criteria before connect and execute with mysql, but i didn't found a function to do it. My code seem:
$query = Data::query();
$query->orderBy('c_id DESC');
$list_data = $query->execute();
I want to get real last sql generate from criteria before connect and execute with mysql, but i didn't found a function to do it. My code seem:
$query = Data::query();
$query->orderBy('c_id DESC');
$list_data = $query->execute();