{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/54787afbd0e7c30936101c2fa84bd89b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"54787afbd0e7c30936101c2fa84bd89b","url":"https://api.github.com/users/lsmith77","login":"lsmith77","id":300279},"assignee":null,"updated_at":"2011-11-15T17:02:57Z","labels":[],"closed_at":null,"comments":1,"url":"https://api.github.com/repos/symfony-cmf/symfony-cmf/issues/124","body":"While installing the cmf-sandbox I've noticed two issues:\r\n\r\n1. The command for importing fixtures doesn't work with --purge option\r\napp/console -v doctrine:phpcr:fixtures:load --path=src/Sandbox/MainBundle/Resources/data/fixtures/ --purge=true\r\n\r\nThe problem is that it's trying to purge the \"/rep:policy\" node, which seems to be a system node. It throws [PHPCR\\NodeType\\ConstraintViolationException]              \r\n  HTTP 409: Unable to perform operation. Node is protected\r\n\r\nWhile debugging, I tried to use doctrine:phpcr:purge command to test purging. It also didn't work. I've fixed that by changing isSystemNode method in NodeHelper to the following:\r\n\r\nreturn preg_match('/^(jcr|rep):/', $node->getName());\r\n\r\nThe doctrine:phpcr:purge started to work.\r\n\r\n2. It turned out that the doctrine:phpcr:fixtures:load command with --purge option use a separate implementation of purge, found in PHPCRPurger class. Seems like it should be refactored to use NodeHelper.","html_url":"https://github.com/symfony-cmf/symfony-cmf/issues/124","title":"DoctrinePHPCRBundle","number":124,"id":2246363,"created_at":"2011-11-15T16:58:57Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/c9f4f8ce2c2936bacaf49500b5a127dc?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c9f4f8ce2c2936bacaf49500b5a127dc","url":"https://api.github.com/users/dbu","login":"dbu","id":76576},"updated_at":"2011-11-15T17:02:57Z","url":"https://api.github.com/repos/symfony-cmf/symfony-cmf/issues/comments/2747669","body":"note that we should revert the change from https://github.com/symfony-cmf/cmf-sandbox/issues/27 once this works again as it should.\r\n\r\ni think we should also check which command belongs where (phpcr / jackalop / phpcr-odm) and move where necessary","id":2747669,"created_at":"2011-11-15T17:02:57Z"}}