Questions tagged [doctrine-phpcr]
53 questions
1
vote
1 answer
Sylius on Heroku, getting "phpcr_workspaces" does not exist
I'm trying to install Sylius on Heroku. Here's what I do (taken from https://www.christophh.net/2013/10/19/sylius-on-heroku/):
Create a Heroku app, add a Postgres db
composer create-project -s dev sylius/sylius-standard myAppName
Push my app to…

Arsi
- 21
- 5
1
vote
1 answer
Sylius/Symfony cache compile error
I have the following error after update a sylius project from 0.15 to 0.17. Also the Jackalope\Session::getNode method fails and throw a timeout error, the consumption of cpu and memory of this method is very high.
request.CRITICAL: Uncaught PHP…

rafix
- 76
- 6
1
vote
0 answers
Retrieving node class data from returned PHPCR collections in Symfony CMF
When following the official tutorials to set up PHPCR for use as a node manager for the symfony CMF, it recommends to get all node classes of a similar type in the following manner:
$dm = $this->get('doctrine_phpcr')->getManager();
$posts =…

Asq
- 105
- 8
1
vote
1 answer
How to filter by child value in Symfony PHPCR Query Builder
Trying to build a query in symfony that finds all PHPCR nodes of a certain document type with a given name and filters by the city of its Address child document.
$qb->from()
->document('My\Bundle\Document\MyDocument', 'm')
…

Daniel
- 13
- 4
1
vote
1 answer
Retrieve Documents - filtering
It's possible to simply filter retrieved Documents by using:
$dm->findBy(array('field' => 'value'))
But I need something a bit more suited to Content Repository specifics.
So, is there a way to retrieve Documents (e.g. equivalent to "SELECT ...…

forsberg
- 1,681
- 1
- 21
- 27
1
vote
1 answer
Doctrine PHPCR - Query on ReferenceOne attribute
I've got a problem with doctrine phpcr and the query builder. Is it possible to do a query on an attribute with ReferenceOne() ?
e.g :
/**
* @PHPCR\ReferenceOne(targetDocument="....\Program")
*/
private $program;
But when I'm trying to build a…

Peekmo
- 2,843
- 2
- 19
- 25
1
vote
1 answer
Reading data from CMF/PHPCR
I'm trying to use CMF for backoffice content edition. For the purposes of local content edition, CMF works fine. But then, I want to send this data to another server using a custom data structure, one that is completely different from what PHPCR…

ecc
- 1,490
- 1
- 17
- 42
1
vote
1 answer
Doctrine PHPCR-ODM throws "Transport does not support versioning" exception
The past few days I've been really interested in PHPCR and how it could be used to track versions of Documents. Unfortunately it seems I can't manage to get the versioning to work with Doctrine in PostgreSQL for some reason.
According to the…

tftd
- 16,203
- 11
- 62
- 106
1
vote
1 answer
Access to PHPCR DocumentManager within Sonata Admin
I am using the sonata-project/doctrine-phpcr-admin bundle in my symfony cmf app, and need to call an external library in the postPresist action which requires the phpcr document manager.
So my questions is, is there a way to retrieve the phpcr-odm…

dantelo
- 60
- 8
1
vote
1 answer
Standard form type for editing mutlivalue? (Symfony CMF PHPCR)
I'm using Sonata Admin as a backend. I have within PHPCR Document field that is multivalued (i.e. in PHP an array of strings). Now I'd like to add/remove elements from it within Sonata admin. Which type should I use? Tried collection, but I get…

forsberg
- 1,681
- 1
- 21
- 27
1
vote
0 answers
Symfony2 and Doctrine PHPCR: segmentation fault
I currently have an issue with my Symfony2 application, using the Doctrine PHPCR bundle. When trying to display a Sonata admin list of posts, we got a segmentation fault:
[Thu Aug 01 12:33:11 2013] [notice] child pid 4239 exit signal Segmentation…

Jonathan Petitcolas
- 4,254
- 4
- 31
- 42
0
votes
1 answer
Sort results by sort_order with Doctrine phpcr-odm
Using a Document class with PHPCR-ODM, it is possible to fetch results with the class repository, the results are automatically sorted by a field sort_order that is not in the Document class but in the database schema.
Example of a query logged in…

loicb
- 587
- 2
- 6
- 24
0
votes
1 answer
Setting a document property to be unique
Using Doctrine PHPCR-ODM, is there a way to apply a constraint on a property to prevent duplicate values on the same document type ?
For example (getter and setter have been intentionally omitted):
namespace App\Document;
use…

Damien Flament
- 1,465
- 15
- 27
0
votes
1 answer
PHPCR references vs. children
I want to migrate my legacy shop system from a relational system to a document based. The reason is obivious: I want to reduce the complexity of relations which describes a shop article, that can have multiple different properties.
So I read the…

Mike Reiche
- 382
- 3
- 12
0
votes
1 answer
SonataAdminBundle: how to create a SonataBlock and save it to database?
I try to create a new block from SonataBlockBundle, edit the content block and want to save it to database.
in my composer.json, i got:
"sonata-project/admin-bundle": "^2.3.0",
"sonata-project/doctrine-orm-admin-bundle": "^2.3.4",
…

ibasaw
- 493
- 1
- 7
- 22