草庐IT

myProfile

全部标签

PHP:如何告诉 Eclipse/Netbeans 一个对象属于某个类,以启用 Intellisense

我使用Kohana3.x作为我的Web应用程序框架(使用MVC模式)并使用Propel作为我的ORM。在我的Controller中,我创建了一个对象来表示拥有当前session的配置文件:$this->currentProfile=ProfileQuery::create()->findPK($profileId);我将对象传递给我使用的View:View::set_global('myProfile',$this->currentProfile);//c现在我可以在我的View中使用对象“myProfile”。但问题是,在这个View中,Netbeans和Eclipse都不知道对象的

c# - EntityType 'MyProfile' 没有定义键。为此 EntityType 定义键

我不确定为什么会收到此错误消息。我在我的sql数据库中为其定义了一个主键。这是我的代码:[HttpPost]publicActionResultRegister(RegisterModelmodel){if(ModelState.IsValid){//AttempttoregistertheuserMembershipCreateStatuscreateStatus=MembershipService.CreateUser(model.UserName,model.Password,model.Email);if(createStatus==MembershipCreateStatus