score:3

Per the documentation for the VarDumper component, attributes prefixed with a # are protected, which means you can't access them directly.

You either need to change the visibility of Tag::$id or write a public-visibility getter. Does Tag have a getId() method?


Related Query

More Query from same tag