问题描述
我有多个实体的通知,这些实体必须以单向方式关联,例如 https://laravel.com/docs/8.x/eloquent-relationships#one-to-one-polymorphic-relations,
posts
id - integer
name - string
users
id - integer
name - string
images
id - integer
url - string
imageable_id - integer
imageable_type - string
Doctrine 支持这样的事情吗? 我已经尝试过 Table Inheritance,但最终每个类型都有表格,而不是正确的关系。
提前致谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)