Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Doctrine i __PHP_Incomplete_Class
Forum PHP.pl > Forum > PHP
Fluke
Witam,

Mam problem z __PHP_Incomplete_Class w Doctrine 2.
Patrzyłem na stronę: Entites in the Session ale nic z tych 2 rzeczy nie wychodzi.

Chcę uzyskać taki wynik
  1. object(User\Entity\User\Partner)[270]
  2. public 'ref' => int 1
  3. protected 'id' => int 1
  4. protected '_role' => null
  5. public 'email' => string 'asd@asd.pl' (length=10)
  6. public 'password' => string '98c1bff212afd992c28d3e2c5f9ef70e' (length=32)
  7. public 'personalDetails' => int 2
  8. public 'activationCode' => null
  9. public 'isActive' => boolean true
  10. protected '_personalDetails' => null


A cały czas dostaję:
  1. object(__PHP_Incomplete_Class)[9]
  2. public '__PHP_Incomplete_Class_Name' => string 'User\Entity\User\Partner' (length=24)
  3. public 'ref' => int 1
  4. protected 'id' => int 1
  5. protected '_role' => null
  6. public 'email' => string 'asd@asd.pl' (length=10)
  7. public 'password' => string '98c1bff212afd992c28d3e2c5f9ef70e' (length=32)
  8. public 'personalDetails' => int 2
  9. public 'activationCode' => null
  10. public 'isActive' => boolean true
  11. protected '_personalDetails' => null


Nie mogę sobie z tym poradzić.

Ma ktoś jakieś dobre rozwiązanie tego problemu ?
sazian
obiekt został "deserializowany" zanim została zadeklarowana klasa User\Entity\User\Partne
więc pewnie brakuje jakiegoś include
Fluke
Używam, Zend w wersji 1. Problem został rozwiązany jak użyłem funkcji spl_autoload_register zamiast Zend_Loader_Autoloader_Resource.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.