Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony] $this->getUser()->getAttributeHolder()->remove nie czyści atrybutu, dlaczego?
stachuf11
post
Post #1





Grupa: Zarejestrowani
Postów: 154
Pomógł: 1
Dołączył: 24.04.2006

Ostrzeżenie: (0%)
-----


witam
ustawiam atrybut
  1. <?php
  2. $rej="rejon1";
  3. $this->getUser()->setAttribute('atr_rej', $rej, 'kryteria');
  4. ?>


gdy używam to jest ok, ale chcę go w pewnym momencie wyczyscic-usunąc

  1. <?php
  2. $this->getUser()->getAttributeHolder()->remove('atr_rej');
  3. ?>


nie usuwa, probowałem też tak

  1. <?php
  2. $this->getUser()->getAttributeHolder()->remove('atr_rej','kryteria');
  3. ?>


też nie usuwa, odczytuję jego zawartośc,

  1. <?php
  2. $this->getUser()->getAttribute('atr_rej', '', 'kryteria');
  3. ?>


daje wynik 'rejon1', dlaczego atrybut nie został usunięty?, jak usunąc atrybut?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.12.2025 - 11:43