Rename getEntriesByUser method to getEntriesByUserId

This commit is contained in:
Nicolas Lœuillet 2016-05-04 11:42:52 +02:00
parent 12c697562e
commit d9926005b1
3 changed files with 3 additions and 3 deletions

View file

@ -118,7 +118,7 @@ class Tag
return $this->entries;
}
public function getEntriesByUser($userId)
public function getEntriesByUserId($userId)
{
$filteredEntries = new ArrayCollection();
foreach ($this->entries as $entry) {

View file

@ -9,7 +9,7 @@
<ul>
{% for tag in tags %}
<li id="tag-{{ tag.id|e }}">{{tag.label}} ({{ tag.getEntriesByUser(app.user.id) | length }})</li>
<li id="tag-{{ tag.id|e }}">{{tag.label}} ({{ tag.getEntriesByUserId(app.user.id) | length }})</li>
{% endfor %}
</ul>
{% endblock %}

View file

@ -9,7 +9,7 @@
<br />
<ul class="row data">
{% for tag in tags %}
<li id="tag-{{ tag.id|e }}" class="col l4 m6 s12">{{tag.label}} ({{ tag.getEntriesByUser(app.user.id) | length }})</li>
<li id="tag-{{ tag.id|e }}" class="col l4 m6 s12">{{tag.label}} ({{ tag.getEntriesByUserId(app.user.id) | length }})</li>
{% endfor %}
</ul>
{% endblock %}