create.js with doctrine orm

120 views
Skip to first unread message

Marcel Gläser

unread,
Mar 27, 2013, 7:27:12 AM3/27/13
to symfony-...@googlegroups.com
Hello,
how it is possible to save data from inline edit in a normal database table?
i work with entities and not with document.

can somebody help me?

thx!!!
Marcel

David Buchmann

unread,
Mar 27, 2013, 7:33:55 AM3/27/13
to symfony-...@googlegroups.com
hi marcel,

it should be possible, but will require some development. it would even
be very cool to have that feature.

the actual mapping between json-ld and objects happens in the createphp
library https://github.com/flack/createphp

the relevant code is in
https://github.com/flack/createphp/tree/master/src/Midgard/CreatePHP/Mapper

we built a BaseDoctrineRdfMapper that we extend for phpcr-odm. for the
orm you would do the same. the tricky piece is probably how to build the
ids as they must be enough to determine the content. meaning you would
need something like Namespace.EntityClass-primarykey - or maybe you can
use the orm metadata to have something shorter than the full class name.

once you have an doctrine orm mapper, the rest should just work the same.

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.
> 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

brayan

unread,
Mar 27, 2013, 7:36:40 AM3/27/13
to symfony-...@googlegroups.com
Hi!!!
First of all, maybe you need to clone your question to symfony-cmf-devs forum... is easier yo get help there. (As you can see this cmf-users is quite empty)

About your question.
¿¿You want to save only some data in  SQLDatabase, while using for example phpCr for rest of data??
¿¿ You want to have everything in a SQLDatabase??

Brais De Sousa Díaz

unread,
Mar 27, 2013, 7:37:57 AM3/27/13
to symfony-...@googlegroups.com
Ok, with David answer mine is useless


2013/3/27 brayan <braisd...@gmail.com>
--

David Buchmann

unread,
Mar 27, 2013, 7:43:41 AM3/27/13
to symfony-...@googlegroups.com
i was not even aware we have this list :-)

but it was the right place to ask actually.

now that you know its a dev question, i would propose that if you have
further questions how to implement things, you ask on symfony-cmf-devs
so that others also notice what you are doing ;-)

cheers,david

Am 27.03.2013 12:37, schrieb Brais De Sousa D�az:
> Ok, with David answer mine is useless
>
>
> 2013/3/27 brayan <braisd...@gmail.com <mailto:braisd...@gmail.com>>
>
> Hi!!!
> First of all, maybe you need to clone your question to
> symfony-cmf-devs forum... is easier yo get help there. (As you can
> see this cmf-users is quite empty)
>
> About your question.
> ��You want to save only some data in SQLDatabase, while using for
> example phpCr for rest of data??
> �� You want to have everything in a SQLDatabase??
>
>
>
> El mi�rcoles, 27 de marzo de 2013 12:27:12 UTC+1, Marcel Gl�ser
> escribi�:
>
> Hello,
> how it is possible to save data from inline edit in a normal
> database table?
> i work with entities and not with document.
>
> can somebody help me?
>
> thx!!!
> Marcel
>
> --
> 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-users%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Marcel Gläser

unread,
Mar 27, 2013, 7:59:43 AM3/27/13
to symfony-...@googlegroups.com
Hello at all,
thx for the very fast answers!

I know the list, but I thought there write the developer of symfony-cmf. and i'm not a dev from the team ;)

I must built a own class like DoctrinePhpcrOdmMapper, witch extend the BaseDoctrineRdfMapper class, is it true?

thx
marcel

David Buchmann

unread,
Mar 27, 2013, 8:05:44 AM3/27/13
to symfony-...@googlegroups.com
hi marcel,

exactly, that would be the starting point. you only need to care about
about what you actually need to make orm work.

maybe implementing getBySubject and extending createSubject to put some
class name thing to be used with getBySubject will be enough.

oh, and if you plan to contribute to pieces of the cmf, then the dev
list is right for you ;-)

cheers,david

Am 27.03.2013 12:59, schrieb Marcel Gl�ser:
> Hello at all,
> thx for the very fast answers!
>
> I know the list, but I thought there write the developer of symfony-cmf.
> and i'm not a dev from the team ;)
>
> I must built a own class like DoctrinePhpcrOdmMapper, witchextend the
> BaseDoctrineRdfMapper class, is it true?
>
> thx
> marcel
>
>
>
> Am Mittwoch, 27. M�rz 2013 12:27:12 UTC+1 schrieb Marcel Gl�ser:
>
> Hello,
> how it is possible to save data from inline edit in a normal
> database table?
> i work with entities and not with document.
>
> can somebody help me?
>
> thx!!!
> Marcel
>
Reply all
Reply to author
Forward
0 new messages