Please add `ObjectCollection` to var type, like `@var ObjectCollection|{$className}[] ...`.