Attempted to call method "transactional" on class "Doctrine\ODM\PHPCR\DocumentManager"

16 views
Skip to first unread message

tomhv

unread,
Mar 29, 2015, 3:24:39 PM3/29/15
to symfony-...@googlegroups.com
Hey guys,

Just trying to install using:

composer create-project symfony-cmf/standard-edition <path-to-install> '~1.2'

Everything works until I try to load the fixtures using:

php app/console doctrine:phpcr:fixtures:load

I get an error: 'Attempted to call method "transactional" on class "Doctrine\ODM\PHPCR\DocumentManager"'

The current installed version of doctrine/phpcr-odm is 1.2.2 and there is no method transactional() on the DocumentManager. That method seems to have been added later.

Am I doing something wrong?

Tom

David Buchmann

unread,
Mar 29, 2015, 3:43:12 PM3/29/15
to symfony-...@googlegroups.com
the doctrine fixtures just released 1.2 and it seems that there is a
problem somewhere with that release. another user reported here:
https://github.com/symfony-cmf/symfony-cmf/issues/217

watch that issue, i will check tomorrow and propose a solution.

for now, you can just require doctrine/data-fixtures: 1.0.1 instead,
that should work for the fixtures.

cheers,david
> --
> You received this message because you are subscribed to the Google
> Groups "symfony-cmf-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to symfony-cmf-us...@googlegroups.com
> <mailto:symfony-cmf-us...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

--
Liip AG // Agile Web Development // T +41 43 500 39 80
CH-8005 Zurich // PGP 0xA581808B // www.liip.ch

Tom Haskins-Vaughan

unread,
Mar 29, 2015, 8:40:13 PM3/29/15
to symfony-...@googlegroups.com
Thanks, David. Worked like a charm.
> To unsubscribe from this group and stop receiving emails from it, send an email to symfony-cmf-us...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
The Harvest Cloud
Who says buying local food can't be easy?

harvestcloud.org @harvestcloud github.com/harvestcloud
Reply all
Reply to author
Forward
0 new messages