i Doktrin 2 kişiliğe ısrarcı sorunlar yaşıyorum (Post
) User
ile oturum açtığında Zend_Auth
.
ben oldukça eminim onun kodu olarak oturum kullanıcı dışarı oturum açtığında çalışır ve kullanıcı oturum ve () hatası etkileyen bir rol oynar kimlik Zend_Auth döndü ki :: doğrulamak görünüyor kez başarısız mesajı.
aşağıdaki gibi ok benim kurulum ...
- zend aracı ile oluşturulan, temiz bir Zend Framework uygulaması
- Zend Framework 1.10.7
- doktrin 2
- bootstrap.php - bootstrapping doktrin autoloaders, yapılandırma ve Kurulum varlık yöneticisi
- Application_Auth_Adapter - sadece çok basit bir
Zend_Auth_Result
döndürür - IndexController
- indexAction - Ben yeni bir yazı eklemeye çalıştığınızda nerede
- LoginAction - i ile giriş burada
Zend_Auth
- i logout - logoutAction
- Application\Models\Post - sonrası model sınıf
- Application\Models\User - kullanıcı modeli sınıfı
i stdclass döndüğünüzde authenticate()
i bir hata mesajı gibi alırsınız
A new entity was found through a relationship that was not configured to cascade persist operations: stdClass@000000006ba9d6930000000007857036. Explicitly persist the new entity or configure cascading persist operations on the relationship.
return new Zend_Auth_Result(Zend_Auth_Result::SUCCESS, new StdClass);
i bir dize döndüğünüzde, hata i olsun,
A new entity was found through a relationship that was not configured to cascade persist operations: @. Explicitly persist the new entity or configure cascading persist operations on the relationship.
i Application\Models\Post
döndüğünüzde, i olsun
A new entity was found through a relationship that was not configured to cascade persist operations: Application\Models\User@000000000aea1b5f0000000028c32e2c. Explicitly persist the new entity or configure cascading persist operations on the relationship.
nasıl ben buradan devam edebilirsiniz? ben bu nasıl debug?
eylem bunun bir video (hata) görmek isteyenler için, i (açıklamalarla) screenr ve youtube üzerinde var