public function saveUserInvitation($userId, $code) { $dto = new BOL_InviteCode(); $dto->setCode($code); $dto->setUserId($userId); $dto->setExpiration_stamp(time() + 3600 * 24 * 30); $this->inviteCodeDao->save($dto); }