Remove ArrayCollection as there is no benefits to use it.

Change twig from ArrayCollection to plain array.
This commit is contained in:
Benoît Burnichon
2015-04-29 18:56:40 +02:00
parent 2d5a36f5a2
commit 50ea2e26cb
9 changed files with 89 additions and 95 deletions

View File

@@ -5,7 +5,7 @@
{% set thumb_w = 70 %}
{% set thumb_h = 70 %}
{% set thumbnail = record.subdefs.get('thumbnail') %}
{% set thumbnail = record.subdefs.thumbnail|default(null) %}
{% if thumbnail is not none %}
{% set thumb_w = thumbnail.width %}
@@ -50,4 +50,3 @@
</div>
</div>
<div id="PREVIEWTOOL"></div>