我想在我的树枝上显示expiresAt,但出现此错误:
Method "expiresat" for object "AuthenticationBundle\Entity\User" does not exist in AdminNCBundle:NC:list_clients.html.twig at line 43
在我的树枝上,我为:
{% for client in clients %}
<tr>
<td>{{ client.firstname }} {{ client.lastname }}</td>
<td>{{ client.telephone }}</td>
<td>{{ client.registrationdate|date('Y-m-d H:i:s') }}</td>
<td>{{ client.expiresat|date('Y-m-d H:i:s') }}</td>
<td>{{ client.duration }}</td>
</tr>
{% endfor %}
注册日期显示的很好。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句