嗨,我在Symfony2项目中使用Alice Bundle。
我想让我的职位属性自动递增。
但是我找不到正确的语法。
FMAppBundleEntityFaqQuestion:
FaqQuestion_{1..100}:
headline: <sentence()>
body: <sentence()>
position: <autoincrement()> #Does not work
category: @FaqCategory*
您尝试过current()
吗?
FMAppBundleEntityFaqQuestion:
FaqQuestion_{1..100}:
headline: <sentence()>
body: <sentence()>
position: <current()>
category: @FaqCategory*