Questions tagged [doctrine-phpcr]
53 questions
0
votes
1 answer
How to filter by parent document in SonataAdmin Doctrine2 PHPCR Admin
It is my first simple project on SymfonyCMF.
In my project i have a lot of 'profile' documents(in term of phpcr). Each profile belongs to specific 'department'(parent document). (In phpcr each document must have parent document.)
In admin panel…

Video Logs
- 3
- 3
0
votes
1 answer
DoctrinePHPcrBundle: Why use a separate connection if I also use ORM?
In the DoctrinePHPCRBundle documentation is stated:
It is recommended to use a separate connection to a separate database
if you also use Doctrine ORM or direct DBAL access to data, rather
than mixing this data with the tables generated by…

Aerendir
- 6,152
- 9
- 55
- 108
0
votes
0 answers
How to map children on a phpcr document. Children always empty
i have a document 'Page' which should have different "elements" of unstructured content on the page.
The mapping of my document is loaded properly (i can create documents) and it looks like that:

Patrick
- 1,562
- 1
- 16
- 33
0
votes
0 answers
Symfony CMF menu translation
I try to set up a simple CMS on our web application using the Symfony CMF.
I can successfully load the fixtures in multiple languages.
$parent = $dm->find(null, '/cms/pages');
$rootPage = new Page(array('add_locale_pattern' =>…

Ramon Rainer
- 11
- 3
0
votes
1 answer
PHPCR ODM - get path of not-persisted document
I'm trying to determine the 'future' path a document will get in Doctrine PHPCR ODM, but I don't know how to do this. I can't find any clear documentation on this either...
Can someone help me out on determining the path a document/node will be…

Richard
- 70
- 8
0
votes
0 answers
Symfony, Tutorial, Creating a Basic CMS using the RoutingAutoBundle
I am making simple Symfony CMS tutorial from:
http://symfony.com/doc/master/cmf/tutorial/introduction.html
http://symfony.com/doc/master/cmf/tutorial/getting-started.html
http://symfony.com/doc/master/cmf/tutorial/auto-routing.html
The problem is…

olga
- 959
- 1
- 15
- 42
0
votes
2 answers
How to create a route with custom path in Symfony RoutingBundle (PHPCR)?
I'm currently researching Symfony CMF and PHPCR for a project I recently started. What I'm currently trying to figure out is how to create a Route and save it into the database. As far as I understand, I must use…

tftd
- 16,203
- 11
- 62
- 106
0
votes
2 answers
Symfony CMF multiple image fields using ImagineBlock
Problem
Hello, I am using Symfony CMF 1.2, liip/imagine-bundle 1.3, symfony-cmf/media-bundle 1.2. I want to add 2 additional image fields to my block that extends ImagineBlock because for every image I upload there will be a mobile and tablet…

Rishi
- 667
- 1
- 6
- 13
0
votes
2 answers
How to make nested where clauses with phpcr odm
The phpcr odm documentation seems to be quite clear on that point, but I can't manage to make it.
Here the raw mysql equivalent expected:
SELECT (foo, bar, baz) FROM table
WHERE (foo = 'foo') AND bar = 'bar' OR (baz = 'baz' OR baz = 'bazinga')
I…

loicb
- 587
- 2
- 6
- 24
0
votes
2 answers
Symfony 2 - Symfony CMF SearchBundle installation
I'm trying to install Symfony CMF SearchBundle over a clean Symfony 2.3 but the installation instructions are quite incomplete. It seems like it has some dependencies that needs to be added manually in composer.json. After hours I got to…

VMC
- 1,378
- 4
- 16
- 32
0
votes
1 answer
Doctrine PHPCR @Children & @Child
I started learning PHPCR with doctrine in Symfony-CMF, and I have a question.
Is that possible to have @Children and @Child on 2 differents attributes of the same document ?
According to the doc...
The annotated instance variable will be populated…

Peekmo
- 2,843
- 2
- 19
- 25
0
votes
0 answers
CmfRoutingBundle & PHPCR-ODM Custom Translation Strategy
I'm trying to put together the following phpcr structure, which consists of freezing out certain versions of documents as references that are then pushed to external system apis for translation. Once a translation is complete for a locale it is sent…

dantelo
- 60
- 8
0
votes
2 answers
Error generating custom url that shows a phpcr document version in SonataAdmin
So i'm trying to extend the SonataAdmin show view to have a list of the document's versions (phpcr checkpoint or checkin).
I've got the list of saved versions showing correctly, and now i need to make them into links that display that version of…

dantelo
- 60
- 8
0
votes
1 answer
PHPCR Jackalope / Jackrabbit performance and compatibility (Symfony CMF)
Anticipating possible future issues, I decided to use Java-based Jackrabbit implementation (since it's the system with the highest performance according to the Symfony CMF docs) for the storage purposes. For the portal I'm developing I use at the…

forsberg
- 1,681
- 1
- 21
- 27
0
votes
1 answer
Indecent number of queries with PHPCR/Jackalope Doctrine DBAL?
I'm just start learing PHPCR with Doctrine and Jackalope DBAL implemnetation.
Using the Symfony 2 debug toolbar I can see that, for a simple form and with parent property selection, it takes 15 queries (... added for readability):
[2014-08-24…

gremo
- 47,186
- 75
- 257
- 421