Fatal error: Uncaught InvalidArgumentException: The directory "/var/www/app/app/cache/prod/annotations" is not writable. Both, the webserver and the console user need access. You can manage access rights for multiple users with "chmod +a". If your system does not support this, check out the acl package. in /var/www/app/app/cache/prod/classes.php:7123
Stack trace:
#0 /var/www/app/app/cache/prod/classes.php(7055): Doctrine\Common\Annotations\FileCacheReader->saveCacheFile('/var/www/app/ap...', Array)
#1 /var/www/app/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php(63): Doctrine\Common\Annotations\FileCacheReader->getClassAnnotations(Object(ReflectionClass))
#2 /var/www/app/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php(103): Doctrine\ORM\Mapping\Driver\AnnotationDriver->loadMetadataForClass('PT\\MainBundle\\E...', Object(Doctrine\ORM\Mapping\ClassMetadata))
#3 /var/www/app/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(116): Doctrin in /var/www/app/app/cache/prod/classes.php on line 7123