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; return $this->entries;
} }
public function getEntriesByUser($userId) public function getEntriesByUserId($userId)
{ {
$filteredEntries = new ArrayCollection(); $filteredEntries = new ArrayCollection();
foreach ($this->entries as $entry) { foreach ($this->entries as $entry) {

View file

@ -9,7 +9,7 @@
<ul> <ul>
{% for tag in tags %} {% 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 %} {% endfor %}
</ul> </ul>
{% endblock %} {% endblock %}

View file

@ -9,7 +9,7 @@
<br /> <br />
<ul class="row data"> <ul class="row data">
{% for tag in tags %} {% 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 %} {% endfor %}
</ul> </ul>
{% endblock %} {% endblock %}