Questions tagged [doctrine-phpcr]

53 questions
3
votes
1 answer

Sonata Doctrine Phpcr Admin Bundle: Change parent of node

I have problem with changing parent of document inside sonata admin. My document has property like this: /** * @PHPCRODM\Children(filter="teaserimage*", cascade="persist") * @var Image[] */ protected $teaserImages; .... /** *…
3
votes
1 answer

Doctrine Proxy not found

I'm trying to set up the Symfony CMF with Doctrine PHPCR-ODM. Unfortunately, whenever I want to save some data from Sonata Admin into the database, I get the following exception: Compile Error:…
temparus
  • 119
  • 3
  • 10
3
votes
1 answer

Circular Dependency with Doctrine ORM, Doctrine PHPCR-ODM, and Event Listeners

I am working on a complex Symfony project that blends Doctrine ORM objects with Doctrine PHPCR-ODM documents. Everything works fine, but I have been unable to solve circular dependency injection problems between listeners in the container. The…
futureal
  • 3,025
  • 1
  • 22
  • 33
2
votes
1 answer

Symfony CMF RoutingBundle - PHPCR Route Document - Multiple Parameters

Tried to find a solution, but I got always stuck a the docs or at answers include other bundles. In the documentation of the dynamic router you can find the hint: "Of course you can also have several parameters, as with normal Symfony routes. The…
2
votes
2 answers

PHPCR nodes and meta cache override

I am using Symfony CMF, PHPCR and SncRedisBundle. I want to add metadata and nodes caching for PHPCR to SncRedisBundle. For testing purposes, I have modified the loadDoctrine function in the file…
arvind.d
  • 351
  • 2
  • 9
2
votes
0 answers

Symfony2 upload image to PHPCR

I have DoctrinePHPCR and the MediaBundle installed on Symfony so that I may upload an image. The main example http://symfony.com/doc/master/cmf/book/database_layer.html Only describes how to save a "Document" in a Default Controller. I already have…
Ray Foss
  • 3,649
  • 3
  • 30
  • 31
1
vote
1 answer

What can be reasons of error "None of the chained routers were able to generate route: Route not found" in SymfonyCMF?

Getting error from file: /app/vendor/symfony-cmf/routing/src/ChainRouter.php "None of the chained routers were able to generate route: Route '/cms/routes/can' not found". I am guessing it should find this route from database table phpcr_nodes, it…
Darius.V
  • 737
  • 1
  • 13
  • 29
1
vote
0 answers

$contentDocument controller action argument with Symfony CMF Dynamic Router

I've followed the Controllers and templates documentation after having integrated Symfony CMF and the AutoRoutingBundle into my application. My issue is similar to #50450338 but even when naming the argument correctly, I can't solve the problem. I…
1
vote
0 answers

Add New button in Symfony Sonata Media Gallery throws errors with PHPCR

I am having a hard time wrapping my head around this, I have started a project based on Symfony 4 + PHPCR + CMF + Sonata admin, I do not have much experience with Symfony and I suppose I should have started with something simpler, but hey... Anyways…
Arnie
  • 143
  • 2
  • 10
1
vote
1 answer

Symfony 2.8 -> 3.4 ERROR PhpDumper "Cannot dump definitions which have method calls."

I'm updating an application from Symfony 2.8 to 3.4 and getting the following error: Cannot dump definitions which have method calls. Here the verbose version: [Symfony\Component\DependencyInjection\Exception\RuntimeException] Cannot dump…
Kim
  • 1,757
  • 1
  • 17
  • 32
1
vote
2 answers

Symfony CMF WebTestCase missing phpcr:managed node type

I'm trying to write some WebTestCases for a simple blog integrated in our web application. One of the test cases looks like the following: public function testNewSubmitAction() { //load necessary data & login as admin $fixtureRepo =…
1
vote
0 answers

Installing Doctrine2 PHPCR Admin - non-existing parameter

I'm trying to install Symfony CMF Bundle following this tutorial https://symfony.com/doc/current/cmf/tutorial/introduction.html The problem comes when I try to install Doctrine PHPCR Admin Bundle. After following th steps in…
1
vote
0 answers

How to store and retrieve a PDF file in PHPCR?

I am using Apache Jackrabbit server as WebDAV server as our application's file storage backend. The application is developed using PHP. I want to store a PDF file and retrieve it back from jackrabbit server using PHP content repository. Can anyone…
1
vote
1 answer

SonataMediaBundle and PHPCR, Document is not saved properly?

After attempting to upload an image, i get the following error message: An exception has been thrown during the rendering of a template ("Unable to retrieve the download security : "). This error occurs after the "create", at the following…
user2559108
1
vote
2 answers

Doctrine-PHPCR-ODM Event doesn't fire

I have a doctrine-phpcr-odm document named article,I want to slugify a field before updating each article. The event fires for doctrine-orm entities but dosn't fire for doctrine-phpcr-odm documents! class ArticlePreUpdateListener { public…
Saman Mohamadi
  • 4,454
  • 4
  • 38
  • 58
1
2 3 4