Updating the record by fireing the SQL directly worked as shown below.
[...]
try {
$con = Propel::getConnection(BookPeer::DATABASE_NAME);
$sql = "UPDATE `book` SET "
. "`published_at`='0000-00-00 00:00:00' "
. "WHERE id=".$bookId;
$stmt = $con->prepare($sql);
$stmt->execute();
} catch(Exception $exc) {
$this->logger->err(__METHOD__ . " " . $exc->getMessage());
}
[...]
Although this solution works, it isn't a good practice, because it circumvents the use of more high-level functions provided by the ORM. A cleaner approach would be to let the value default to NULL
instead of 0000-00-00 00:00:00
as mentioned by j0k in the comments to the question. But if your environment needs it, you can adapt the above code.