0

我遇到了 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.

任何想法如何强制插入值而不是参考?

4

1 回答 1

1

github上有一个问题和答案:https ://github.com/hautelook/AliceBundle/issues/443

于 2019-02-20T18:25:10.303 回答