By jemiris - Thu Jan 30, 2020 8:11 am
- Thu Jan 30, 2020 8:11 am
#827485
while using below query for different workspace in plugin
I'm getting the issue in this line $cnn = \Propel::getConnection(SYS_SYS);
Code: Select all
My Question is:$date = date("Y-m-d h:i:s");
$cnn = \Propel::getConnection(SYS_SYS);
$stmt = $cnn->createStatement();
if (@$is_created) {
$query = "UPDATE PMT_BOOK SET TITLE = '$title', CREATED_AT = '$date', UPDATED_AT = '".$date."' WHERE STATUS = 1";
}
$result = $stmt->executeQuery($query, ResultSet::FETCHMODE_ASSOC);
return $result;
I'm getting the issue in this line $cnn = \Propel::getConnection(SYS_SYS);