Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony][SF3] Wywołanie magicznej methody __call
kusiu
post
Post #1





Grupa: Zarejestrowani
Postów: 163
Pomógł: 10
Dołączył: 24.01.2006

Ostrzeżenie: (30%)
XX---


Zaimplementowalem https://github.com/KnpLabs/DoctrineBehaviors#translatable, natomiast methoda __call, ktora umiescilem w entity nie jest wykonywana:

  1. public function __call($method, $arguments)
  2. {
  3. return $this->proxyCurrentLocaleTranslation($method, $arguments);
  4. }


  1. Neither the property "name" nor one of the methods "getName()", "name()", "isName()", "hasName()", "__get()" exist and have public access in class "AppBundle\Entity\Occupation".


Co powinienem zrobic aby methoda __call nie byla ignorowana?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kusiu
post
Post #2





Grupa: Zarejestrowani
Postów: 163
Pomógł: 10
Dołączył: 24.01.2006

Ostrzeżenie: (30%)
XX---


Cytat(nospor @ 12.02.2018, 12:23:54 ) *
Ja ci tylko mowie czego oczekuje doctrine. To nie jest blad rzucany przez php. To jest blad rzucany przez Doctrine (ewentualnie symfony). Wiec mi niczego nie tlumacz tylko im


Dziekuje za przetlumaczenie bledu (IMG:style_emoticons/default/specool.gif) Ale nie o to pytalem bo doskonale je rozumiem. Moje pytanie brzmialo czy da sie SF wymusic by sprawdzal methode __call przy odczytywaniu danych z formularza.
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: 29.06.2026 - 07:17