Symfony2 doctrine:generate:entities chmod operation not permitted
<p>Recently upgraded from 2.3.1 to 2.8.7 on a dev machine.
All has been going fine until I needed to create a new table.
Managed to generate the yml fine via doctrine:mapping:convert</p>

<p>When I come to create the getters and setters via doctrine:generate:entities I get this:</p>

<pre><code>[Symfony\Component\Debug\Exception\ContextErrorException]
Warning: chmod(): Operation not permitted
</code></pre>

<p>And nothing else. Which isn't very helpful. Is it a chmod which I need to add an @ to somewhere?
I am executing the command as www-data and the log folder files are also www-data, so I don't believe it is a debug file permission issue.</p>

<p>Also, is it related to something which needs upgrading. Here is my composer file:</p>

<pre><code>"require": {
        "php": "&gt;=5.3.3",
        "symfony/symfony": "2.8.*",
        "doctrine/orm": "2.5.*",
        "doctrine/doctrine-bundle": "1.6.*",
        "twig/extensions": "1.3.*",
        "symfony/swiftmailer-bundle": "~2.3",
        "symfony/monolog-bundle": "~2.4",
        "symfony/assetic-bundle": "~2.8",
        "sensio/distribution-bundle": "~5.0",
        "sensio/framework-extra-bundle": "^3.0.2",
        "incenteev/composer-parameter-handler": "~2.0",
        "snc/redis-bundle": "dev-master",
        "predis/predis": "1.0.*",
        "symfony/class-loader": "v2.8.*"
    },
    "require-dev": {
        "sensio/generator-bundle": "~3.0",
        "symfony/phpunit-bridge": "~2.7"
    },
</code></pre>

<p>I just wish the debug was slightly more helpful in regards to what it was doing it at the time. Or what file/line the error occurred at.</p>