symfony-cmf/cmf-sandbox — Issue #25: Error when loading fixtures (flushNoSave related)
Author: nacmartin
Created: 2011-10-17 21:28:57+00:00
State: open

When running

app/console -v doctrine:phpcr:fixtures:load --path=src/Sandbox/MainBundle/Resources/data/fixtures/ --purge=true

[1]

Throws this error:

Call to undefined method Doctrine\ODM\PHPCR\DocumentManager::flushNoSave() in cmf-sandbox/src/Sandbox/MainBundle/Resources/data/fixtures/005_LoadStaticPageData.php on line 51

That line contains the instruction `$manager->flushNoSave()` , but `flushNoSave()` was removed from ODM in this commit:

https://github.com/doctrine/phpcr-odm/commit/ce8fd9274875ef1e019bfaac1c5f9e931f7b1e7b#lib/Doctrine/ODM/PHPCR/DocumentManager.php

So, the question is what to do with that `flushNoSave`. I am not familiarized with this, hope this helps.

[1] actually the command in the README was `phpcr:fixtures:load`, that should be updated to `doctrine:phpcr:fixtures:load`