php - 如何强制插入 Alice 灯具?
问题描述
我遇到了 Alice 固定装置中的引用问题。我想插入值,而不是引用,因为稍后我想将此数据插入现有数据库中。
Account_User2:
# Generated here
account_id (unique): 1
account_type_id: 2 # <- here i would like to insert int, not reference
user_id: '@User2->user_id'
account_title: '@User2->first_name @User2->last_name'
is_enabled: 1
爱丽丝 3+
php 7+
错误:
Expected value of type "\AccountType" for association field "\Account#$account_type_id", got "integer" instead.
任何想法如何强制插入值而不是参考?
解决方案
github上有一个问题和答案:https ://github.com/hautelook/AliceBundle/issues/443
推荐阅读
- javascript - SAPUI5 后端系统中两个实体之间的关联?
- python - 名为 * 的 Python 方法参数(只是星号,只有一个字符长)
- react-native - 为什么 gl-react 不能在 react-native 中工作?
- c# - 整个片段的 Mvvm 交叉导航
- javascript - 将数组转换为动态对象
- ios - 新添加的 CNContact 从原生获取时没有唯一标识符
- java - 在任何其他任务之前完成清洁任务
- python - Python 3.7 ImportError:无法导入名称'XXXX'
- ios - 如何在 Swift 中呈现 UI 视图并保留 Tab 栏
- perl - 肥皂 perl 和 ssl 证书已更改