symfony-cmf / standard-edition

The "Symfony CMF Standard Edition" distribution
cmf.symfony.com
MIT License
118 stars 48 forks source link

doctrine:phpcr:fixtures:load failed if phpcr_user is defined to be null #30

Closed krichprollsch closed 9 years ago

krichprollsch commented 9 years ago

With the default parameter.yml but with phpcr_user defined to null

    phpcr_user: ~ 

The command php app/console doctrine:phpcr:fixtures:load returns

  [PHPCR\NodeType\ConstraintViolationException]
  Can't remove the protected property: jcr:createdBy

The source of error is hard to find with this message. Maybe it will be useful to check phpcr_user with not null condition into DoctrinePHPCRBundle ?

dbu commented 9 years ago

indeed, seems that we must forbid this configuration from being null. created https://github.com/doctrine/DoctrinePHPCRBundle/issues/182 as it belongs there, not into this repository.

krichprollsch commented 9 years ago

thanks