PhpCR Jackalope Jackrabit

9 views
Skip to first unread message

Simón Berton

unread,
Aug 13, 2013, 9:20:26 AM8/13/13
to jackal...@googlegroups.com
Hello.

I´m currently working on setting up my enviroment so I can work with the Jackrabit implementation.

So far I have read the doc http://symfony.com/doc/current/cmf/tutorials/installing_configuring_doctrine_phpcr_odm.html and got it to add some "Documents" to the service but I´m still unable to connect al the dots of how the framework works.

I have added the @PHPCRODM\Document to my bundle under the "Document" folder of it, and added the composer, etc...

Also followed this one: http://melp.nl/2011/07/symfony2-phpcr-doctrine2-jackalope-recipe/. But still missing something, like does this framework link one of my entity to the Document I declare?

If anyone can give me some direction I appreciate it !!!

Thanks


--
Simón Berton Sugasti
Montevideo - Uruguay

David Buchmann

unread,
Aug 13, 2013, 10:35:14 AM8/13/13
to Simón Berton, jackal...@googlegroups.com
hi simon,

welcome!

i am afraid i don't really understand what your question is. if its
general understanding of phpcr-odm, have a look at
http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/

in a nutshell, you create your mapped objects with normal

$doc = new MyDocument();

and change values on it. the interaction with doctrine is using the
ObjectManager to call

$dm->persist($doc);
$dm->flush();

when you created it, so doctrine starts to know about it. the flush
stores the changes to the repository. you need that when you change your
content later.

$dm->find(null, '/my-doc'); finds you back the stored document. read on
the phpcr-odm for further understanding how the ids are repository paths
and so on.

if i understand correctly, the jackalope setup works for you. so the
right mailinglist to ask would be symfony-...@googlegroups.com
(and please subscribe to the group first so that you also get the
replies ;-)

cheers,david
> Sim�n Berton Sugasti
> Montevideo - Uruguay
>
> --
> You received this message because you are subscribed to the Google
> Groups "Jackalope" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jackalope-de...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

--
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
Reply all
Reply to author
Forward
0 new messages