我有一个class UserProfile
定义,它将默认user
作为外键。 现在另一个class A
有一个外键UserProfile
。
因此,为了保存类A中的任何实例,我如何为它提供userprofile对象。无法分配 - 必须是“UserProfile”实例
另外,确定class UserProfile
是否意味着class user
仍然被使用,而class UserProfile
只是一些其他表?
我需要知道这一点,因为我必须照顾用户配置文件的创建,所以我应该知道存储在哪里?
- 困惑
我应该为'class user'本身创建一个外键吗? – zubinmehta 2010-05-21 11:18:23