/** * Sets the DST * * @param PcUser $user */ private static function setDst(PcUser $user) { $forumTablesPrefix = sfConfig::get('app_forum_tablePrefix'); $connection = Propel::getConnection(); $userId = $user->getForumId(); $query = sprintf("UPDATE " . $forumTablesPrefix . "users SET dst=:dst WHERE id=%d", (int) $userId); $statement = $connection->prepare($query); $statement->execute(array('dst' => $user->getDstActive())); }