symfony-cmf / symfony-cmf-website

[website is discontinued] Website for the Symfony CMF
http://cmf.symfony.com
Other
36 stars 29 forks source link

Cannot load fixtures using Windows #16

Closed dinamic closed 11 years ago

dinamic commented 11 years ago

Using the default setup is impossible to get a working environment while using Windows OS.

Consider the following output:

D:\projects\symfony-cmf-website>php app\console doctrine:phpcr:fixtures:load
Careful, database will be purged. Do you want to continue Y/N ?y
  > purging database

  [ErrorException]
  Warning: mkdir(): Invalid argument in D:\projects\symfony-cmf-website\vendor\doctrine\common\lib\Doctrine\Common\Cache\FilesystemCache.php line 109

doctrine:phpcr:fixtures:load [--fixtures[="..."]] [--append] [--name[="..."]]

var_dump($filepath)

string(125) "D:\vagrant\vms\icd\projects\symfony-cmf-website\app\cache\dev\doctrine\cache\2cdfc7e32af4\77754e1f7a1b\d8a09d6e\nodes[nodes: "
dinamic commented 11 years ago

The issue seem to be with the LiipDoctrineCacheBundle.

There's workaround - set the type of cache to an array. Example config.yml:

liip_doctrine_cache:
    namespaces:
        meta:
            type: array
        nodes:
            type: array
lsmith77 commented 11 years ago

yes .. but array will only cache inside the request therefore severely limiting the usefulness. there is a fix for this https://github.com/doctrine/common/issues/180 but it seems to have only been applied to the new doctrine cache lib which has not been released as stable.