In my views I pass a Group
model which has many Filter
s. Each filter has a property part.
Looping over the Filter
s in volt and printing them results in a undefined property notice.
{% for filter in group.filters %}
{{ filter.part }}
{% endfor %}
Undefined property: Phalcon\Filter::$part
Obviously this namespace is wrong and should be UniqueLoneDog\Models\Filter
Dumping the model with {{ dump(filter) }}
shows that it has the correct namespace however.
Anybody know what is going on or why this is happening?
object(UniqueLoneDog\Models\Filter)[151]
public 'groupId' => string '18' (length=2)
public 'type' => string 'predicate' (length=9)
public 'part' => string 'test' (length=4)
...