使用FOSUB
我创建了3个实体,第一个是从FOSBaseuser扩展的用户,然后我有Guardian(不能使用parent)和Etablissement,这两个扩展自用户,知道父和etablissement也是当我注册并选择角色时,它只填充用户表,我想摆脱用户表并填写其他两个表,我该怎么办呢。我想尝试@MappedSuperclass
,但我不知道如何让它与两个实体一起工作,当我注册时我得到这个错误:
(HTTP 500内部服务器错误 执行'SELECT t0.username AS username_1,t0.username_canonical AS username_canonical_2,t0.email AS时发生异常 email_3,t0.email_canonical AS email_canonical_4,t0.enabled AS enabled_5,t0.salt AS salt_6,t0.password AS password_7,t0.last_login AS last_login_8,t0.confirmation_token AS confirmation_token_9, t0.password_requested_at AS password_requested_at_10,t0.roles AS roles_11 FROM user t0 WHERE t0.username_canonical =?'与params [ “AA”]:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'allforkids.user' doesn't exist)
任何线索如何解决它