Answer the question
In order to leave comments, you need to log in
How to iterate through object using Twig?
Hello everyone! Recently started to get acquainted with fw Symfony2. And here's a question intersuet which has not yet found an answer. When displaying information from the database, I get an object with a number of properties (from a linked table). the object field is not a PersistentCollection and looks like this:{{ dump (item1.conveniences) }}
Conveniences {#833 ▼
-lift: 0
-satellite: 0
-internet: 1
-wash: 1
-airCond: 1
-microwave: 1
-shower: 0
-sauna: 0
-guard: 0
-maxPeople: 5
-balcony: 0
-freeParking: 0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question