Doctrine DBAL

The function fetchAll(PDO::FETCH_ALL, 'MyClass') doesn't create object of MyClass