We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Volt Tag namespace bug

I have a model Tag that passed to view of volt tamplate generated by phalcon tools. I have NOTICE The code in view

{{ dump(tag) }}
        {{ tag.id }}

the result of dump is

 object(Vokuro\Models\Tag)#136 (16) {
  ["id"]=>
  int(1)
  ["name"]=>
  string(24) "ывап ывап ыва" ....

The NOTICE answer:


Notice:Undefined property: Phalcon\Tag::$id in /var/www/vokuro/cache/volt/_var_www_vokuro_app_views_tag_search.volt.php on line 28

As you can see the one object has different namespace.



17.5k
Accepted
answer

work after rename varible tag to tag2 all work (0-0)