This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
Unrecognized field: created_at while trying to get number of comments #25
Comments
Can you be more specific about this issue ? |
I'm getting the same error for the following template: <div class="post">
{{ post.title }}
{% media post.image, 'big' %}
<div class="comments">
{% for comment in post.comments %}
{% include 'MyBundle:Default:comment.html.twig' with { 'comment' : comment } %}
{% endfor %}
</div>
</div> It happens when doctrine tries to load the
|
The reason is that the Generated order-by: <order-by>
<order-by-field name="created_at" direction="DESC" />
</order-by>
Shoud be: <order-by>
<order-by-field name="createdAt" direction="DESC" />
</order-by>
|
can you create a PR ? |
sure, but it will take some time as i'm really busy atm. |
the PR is here, could you merge it? It also contains german translations. |
thanks for merging. i guess this is solved then. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I try to display on my "archive" page the number of comments for each post.
When I try to access to the property like this in archive.html.twig
I get :
Do you have a trick to get the number of comments, validated if possible, for each post ?
Thanks
The text was updated successfully, but these errors were encountered: