Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
変数にアットマークを含む Symfony オブジェクトから送信@します。オブジェクト名は請求書であり{{ dump(invoice) }}、小枝テンプレートでは、オブジェクトとパラメーターにパスが表示されます。
@
{{ dump(invoice) }}
invoice[0].banSpojDod@showAs
banSpojDod@showAsしかし、アットマークがあるため、これの値を取得する方法がわかりません@。
banSpojDod@showAs
誰か助けてくれませんか?
属性関数を使用して、変数の「動的」属性にアクセスできます。
{{ attribute(invoice[0], 'banSpojDod@showAs') }}
この助けを願っています